Skip to main content

parse

Function parse 

Source
pub fn parse(doc: &str) -> Result<Vec<Component>>
Expand description

Parse all components from a document.

Uses a stack for nesting. Returns components sorted by open_start. Errors on unmatched open/close markers or invalid names. Skips markers inside fenced code blocks and inline code spans.