Skip to main content

Module html_blocks

Module html_blocks 

Source
Expand description

HTML block parsing utilities.

Functions§

is_html_block_tag_name
Whether name (case-insensitive) is one of the HTML block-level tags recognized by CommonMark §4.6 type-6.
is_pandoc_block_tag_name
Whether name (case-insensitive) is one of pandoc’s blockHtmlTags — the narrower set pandoc-markdown’s htmlBlock reader recognizes. Used by the pandoc-native projector’s split_html_block_by_tags to decide whether a complete HTML tag inside an HTML_BLOCK should split the block — block-level tags emit as separate RawBlock entries; inline tags stay inline in the surrounding Plain content.
is_pandoc_inline_block_tag_name
Whether name (case-insensitive) is one of pandoc’s eitherBlockOrInline tags (excluding void elements and script; see [PANDOC_INLINE_BLOCK_TAGS]).
is_pandoc_void_block_tag_name
Whether name (case-insensitive) is one of pandoc’s void eitherBlockOrInline tags (area, embed, source, track).