Skip to content

Ask an element if it is a :block or :span directly#578

Closed
ashmaroli wants to merge 2 commits into
gettalong:masterfrom
ashmaroli:element-category-predicates
Closed

Ask an element if it is a :block or :span directly#578
ashmaroli wants to merge 2 commits into
gettalong:masterfrom
ashmaroli:element-category-predicates

Conversation

@ashmaroli

@ashmaroli ashmaroli commented Feb 1, 2019

Copy link
Copy Markdown
Contributor

Allows simplifying calls such as Kramdown::Element.category(el) == :block or
Kramdown::Element.category(el) == :span with el.block? and el.span? respectively.

@ashmaroli
ashmaroli force-pushed the element-category-predicates branch from a2faee6 to eb2303c Compare February 1, 2019 16:59
@gettalong

Copy link
Copy Markdown
Owner

@ashmaroli Thank you for this contribution! I have rebased and merged your changes.

@gettalong gettalong closed this Apr 17, 2020
@gettalong gettalong self-assigned this Apr 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants