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.VERBATIM = 'myform_verbatim'#

Token type of a block emitted exactly as written (see myform.preservation). It reads into the typed model’s Ignored node and, unlike MyST’s own myst_ignored, renders in every Markdown engine.

myform.constants.NOTICES = 'myform_preserved'#

Parse-environment key listing every construct left as written, in source order. Each entry has a kind, the 1-based line where the construct starts, the exclusive 0-based end line, and a human note.

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.