Skip to main content

parse

Function parse 

Source
pub fn parse(markdown: &str) -> Document
Expand description

Parse markdown into a typed Document using the default config.

Equivalent to parse_with_config(markdown, &ParseConfig::default()). This is the entry point for the ~40 in-crate callers that don’t need per-parse configuration (URL resolution tests, frontmatter round-trip tests, etc.). Production paths that need source-line tracking or implicit-figure toggling call parse_with_config.