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.
|
2 years ago | |
---|---|---|
.. | ||
test | 2 years ago | |
.gitignore | 2 years ago | |
README.md | 2 years ago | |
example.md | 2 years ago | |
index.js | 2 years ago | |
package-lock.json | 2 years ago | |
package.json | 2 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