pub fn parse<P: AsRef<Path>>(file: P) -> Result<ParsedDocument, MarkdownError>Expand description
Parse a markdown file into a ParsedDocument without rendering to HTML.
Reads the file, extracts frontmatter and headings, and returns the parsed
document. Consumers can iterate over the event stream via
ParsedDocument::events() to render in any format (terminal, HTML, etc.).
Wikilink transforms are not applied (no tag sources configured in this path).