Skip to content

Interface: ParsedMarkdownDocument ​

Defined in: markdown/src/parser/parsed-markdown-document.ts:6

Parsed representation of a Markdown document with optional YAML frontmatter.

Separates key-value metadata extracted from the leading --- YAML block from the remaining Markdown body.

Properties ​

PropertyModifierTypeDescriptionDefined in
bodyreadonlystringTrimmed Markdown body text following the closing frontmatter delimiter.markdown/src/parser/parsed-markdown-document.ts:10
frontmatterreadonlyReadonly<Record<string, unknown>>Parsed YAML frontmatter key-value record (empty when no leading frontmatter block exists).markdown/src/parser/parsed-markdown-document.ts:8

Released under the MIT License.