pub fn parse_inline_text_recursive(
builder: &mut GreenNodeBuilder<'_>,
text: &str,
config: &ParserOptions,
)Expand description
Parse inline text using the recursive emphasis algorithm.
This is the main entry point for parsing inline content with Pandoc-style recursive emphasis handling. It uses a greedy left-to-right, first-match-wins approach that matches Pandoc’s behavior exactly.
Algorithm:
- Parse text left-to-right trying each inline element type in precedence order
- When we see
*or_, try to parse emphasis recursively - Nested emphasis naturally consumes delimiters before outer matches
- All inline elements (code, links, math, etc.) are parsed on-the-fly
§Arguments
text- The inline text to parseconfig- Configuration for extensions and formattingbuilder- The CST builder to emit nodes to