I have a few hundred markdown files and I would like to loop through them and add a new data to their front matter metadata.
For example, this is what my files look like now:
---
title: My title here
---
Markdown content here
And I want to add an id property to them:
---
title: My title here
id: 1982n1x23981u1
---
Markdown content
What would be the cleanest way to do that in Node? I've found a few packages to handle markdown, but all of them aims to convert it to JSON instead.
Thanks in advance!