Parse Markdown Frontmatter with JavaScript
#2 · 2021-01-02 · JavaScript, MarkdownFrontmatter within a Markdown file is a way to add meta properties to a document. If you want to parse Frontmatter (for example with markdown-it), you can use a package called front-matter for that. There are also other packages, but this seems to be the best maintained and most used one.
(Parsing Frontmatter yourself is possible, too. It has some gotchas, though.)