Skip to main content

parse_document

Function parse_document 

Source
pub fn parse_document(content: &str) -> ParsedDoc
Expand description

Parse a complete MDX document, extracting frontmatter and content.

This is the main entry point for parsing MDX content. It extracts YAML frontmatter from the beginning of the document and parses the remaining content into a tree of DocNode elements.