Skip to main content

parse_document

Function parse_document 

Source
pub fn parse_document(source: &str) -> DocTree
Expand description

Parse raw markdown (frontmatter + body) into the positioned projection. Positions in the returned tree are absolute document lines, matching the TS engine. The frontmatter’s data mirrors the TS yaml package’s toJS() value shape; it is None when the YAML does not parse.