Skip to Content
Md2Docx logo Md2Docx

parseFrontmatter

Updated 25 Oct 2026

const parseFrontmatter: FrontmatterParser

Defined in: frontmatter.ts:241

Zero-dependency parser for basic YAML and basic TOML front-matter. Handles strings, quoted scalars, booleans, numbers, lists, and inline arrays. For advanced TOML (tables, multi-line strings) or full YAML 1.2, pass a custom parser.