Skip to content

parseFrontmatter<CustomFrontmatter = unknown>

Parses the front matter of a given content string.

Import:

import { parseFrontmatter } from 'obsidian-dev-utils/obsidian/frontmatter';

Signature:

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

Parameters:

ParameterTypeDescription
contentstringThe content string to parse.

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