Skip to content

MarkdownDocument

Structure representing a complete markdown document with optional frontmatter and sections.

Signature

typescript
interface MarkdownDocument {
  frontmatter?: Record<string, unknown>;
  sections: MarkdownSection[];
}

Properties

  • frontmatter · object

    Optional frontmatter data for the document

  • sectionsRequired · MarkdownSection[]

    Array of sections that make up the document content

Released under the MIT License.