getFrontMatterInfo() function
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.
Signature:
export function getFrontMatterInfo(content: string): FrontMatterInfo;Parameters
| Parameter | Type | Description |
|---|---|---|
content | string |
Returns: