Central registry and priority-ordered list of all inline parsing rules.
This module imports every inline rule, re-exports them for individual use,
and assembles them into the inlineRules array, which defines the
order in which rules are attempted during inline parsing.
Rule ordering matters: earlier rules take priority when multiple rules
could match the same token. For example, formatting rules (bold, italic,
etc.) are tried before link rules, and the text/fallback rules are
placed last as catch-alls.
The fallbackRule is exported separately as inlineFallbackRule because
it matches any token type and is used as a last resort when no other rule
succeeds. It is NOT included in the inlineRules array to prevent it
from short-circuiting more specific rules.
Central registry and priority-ordered list of all inline parsing rules.
This module imports every inline rule, re-exports them for individual use, and assembles them into the inlineRules array, which defines the order in which rules are attempted during inline parsing.
Rule ordering matters: earlier rules take priority when multiple rules could match the same token. For example, formatting rules (bold, italic, etc.) are tried before link rules, and the text/fallback rules are placed last as catch-alls.
The
fallbackRuleis exported separately asinlineFallbackRulebecause it matches any token type and is used as a last resort when no other rule succeeds. It is NOT included in theinlineRulesarray to prevent it from short-circuiting more specific rules.