Skip to content

parseFrontmatter<CustomFrontmatter = unknown>

Parses the front matter of a given content string.

Import:

import { parseFrontmatter } from '@mnaoumov/obsidian-lib/frontmatter';

Signature:

function parseFrontmatter(content: string): CombinedFrontmatter<CustomFrontmatter>

Parameters:

Parameter Type Description
content string The content string to parse.

Returns: CombinedFrontmatter<CustomFrontmatter> — The parsed front matter.