pub fn parse(input: &str) -> RootExpand description
Parse an RDX document string into a compliant AST.
This is the primary entry point for the parser. It handles:
- YAML frontmatter extraction (spec 2.1)
- CommonMark block structure via pulldown-cmark
- RDX component tags with typed attributes (spec 2.2, 2.3)
- Variable interpolation in text (spec 2.4)
- Escape sequences (spec 2.5)
- HTML pass-through for lowercase tags (spec 2.6)
- Error nodes for malformed constructs (spec 3)