Skip to content

getFrontMatterInfo

Code location

getFrontMatterInfo(content): FrontMatterInfo

Given the contents of a file, get information about the frontmatter of the file, including whether there is a frontmatter block, the offsets of where it starts and ends, and the frontmatter text.

Parameters

content: string

Returns

FrontMatterInfo