linkedlist:

Parse Markdown Frontmatter with JavaScript

#2 · · JavaScript, Markdown

Frontmatter 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.)