Skip to main content

Module parser

Module parser 

Source

Structs§

ParseOptions
Dialect knobs. Default is MDX-friendly; spec runners flip these to match strict CommonMark / GFM semantics.
Parser
Token-stream cursor + diagnostic engine. 'tokens ties borrowed lexemes to the source; 'eng ties the engine borrow to the caller.

Functions§

parse
Lex + parse in one shot, dropping all diagnostics. Tests + the parse bin; production callers should construct their own DiagnosticEngine.
parse_inline_str
Lex s and run the inline parser. Used by table cells, which receive raw cell strings rather than pre-tokenised inline content.
parse_with
parse with explicit ParseOptions.