wdpr
    Preparing search index...

    Module parser/rules/inline/text

    Provides the two lowest-priority inline rules: textRule and fallbackRule.

    These rules act as catch-alls that convert unrecognized tokens into plain "text" AST elements, ensuring no token is ever silently dropped during inline parsing.

    textRule handles TEXT and WHITESPACE tokens specifically and is included in the main inlineRules array as the last entry before the fallback.

    fallbackRule has an empty startTokens array, which means it matches ANY token type. It is exported separately as inlineFallbackRule and is NOT included in the inlineRules array to prevent it from short-circuiting more specific rules. Instead, it is invoked explicitly by the parser when no other rule matches.

    Variables

    fallbackRule
    textRule