Skip to Content
Md2Docx logo Md2Docx

extractFrontmatterNode()

Updated 25 Oct 2026

extractFrontmatterNode(root): RootContent & \{ type: "yaml" | "toml"; value: string; \} | undefined

Defined in: frontmatter.ts:321

Extracts front-matter AST node from Root or children array.

Parameters

root

Root | RootContent[] | undefined

Returns

RootContent & \{ type: "yaml" | "toml"; value: string; \} | undefined

On this page