frontmatter
Module for handling frontmatter generation in Markdown documents. Provides utilities for formatting and printing frontmatter content.
printFrontMatter()β
function printFrontMatter(
title,
props,
options): string
Defined in: frontmatter.ts:21
Generates a formatted frontmatter string for Markdown/MDX documents.
Parametersβ
titleβ
string
The title to be included in the frontmatter
propsβ
Maybe
<FrontMatterOptions
>
Additional frontmatter properties to be included
optionsβ
PrintTypeOptions
Configuration options for printing
Returnsβ
string
Formatted frontmatter string, or empty string if formatting is disabled