pub fn parse_document(source: &str) -> DocTreeExpand 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.