You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
sources-peterbabic.dev/yaml-metadata-in-markdown
Peter Babič 60dcc7e874
insert posts sources
3 years ago
..
test insert posts sources 3 years ago
.gitignore insert posts sources 3 years ago
README.md insert posts sources 3 years ago
example.md insert posts sources 3 years ago
index.js insert posts sources 3 years ago
package-lock.json insert posts sources 3 years ago
package.json insert posts sources 3 years ago

README.md

YAML metadata in Markdown

This is a source code repository for the blog post

https://peterbabic.dev/blog/yaml-metadata-in-markdown

Setup

git clone https://git.peterbabic.dev/demo/yaml-metadata-in-markdown.git
cd yaml-metadata-in-markdown
npm install
node .

This should produce the JSON ouput containing parsed Front Matter in a form of YAML from the example.md

{
  "Title": "Post about the Front Matter",
  "Category": "programming",
  "Tags": ["markdown", "yaml", "metadata"]
}

License

MIT