constants: Markdown-It Rule Ordering Tables#

BLOCK_RULES maps every known markdown-it block rule to the alternate rule chains it participates in, and INLINE_RULES lists the known inline rules; ParserEntry validates each parser registration against these tables.

Markdown-It Rule Ordering Tables.

BLOCK_RULES maps every known markdown-it block rule to the alternate rule chains it participates in, and INLINE_RULES lists the known inline rules; ParserEntry validates each parser registration against these tables.

myform.constants.BLOCK_RULES: dict[str, list[str]] = {'block': [], 'blockquote': ['paragraph', 'reference', 'blockquote', 'list', 'footnote_def'], 'code': [], 'fence': ['paragraph', 'reference', 'blockquote', 'list', 'footnote_def'], 'heading': ['paragraph', 'reference', 'blockquote', 'footnote_def'], 'hr': ['paragraph', 'reference', 'blockquote', 'list', 'footnote_def'], 'html_block': ['paragraph', 'reference', 'blockquote', 'footnote_def'], 'lheading': [], 'list': ['paragraph', 'reference', 'blockquote', 'footnote_def'], 'normalize': [], 'paragraph': [], 'reference': [], 'replacements': [], 'root': [], 'smartquotes': [], 'table': ['paragraph', 'reference', 'footnote_def'], 'text_join': []}#

Known markdown-it block rules, each mapped to the alternate rule chains it participates in.

myform.constants.INLINE_RULES: list[str] = ['text', 'inline', 'newline', 'escape', 'link', 'linkify', 'autolink', 'image', 'entity', 'html_inline', 'backticks', 'balance_pairs', 'strikethrough', 'emphasis', 'fragments_join']#

Known markdown-it inline rules.