pub fn parse(input: &str, config: Option<ParserOptions>) -> SyntaxNodeExpand description
Parses a Quarto document string into a syntax tree.
Single-pass architecture: blocks emit inline structure during parsing.
Convenience wrapper that scans the input for reference-definition
labels via collect_refdef_labels before parsing. Callers that
already have a precomputed RefdefMap (e.g. salsa-cached) should
use parse_with_refdefs instead to skip the scan.
§Examples
use panache_parser::parser::parse;
let input = "# Heading\n\nParagraph text.";
let tree = parse(input, None);
println!("{:#?}", tree);§Arguments
input- The Quarto document content to parseconfig- Optional configuration. If None, uses default config.