kgar / ts-markdown

An extensible TypeScript markdown generator that takes JSON and creates a markdown document
https://kgar.github.io/ts-markdown/
MIT License
9 stars 4 forks source link

Add frontmatter options #48

Closed HomeroKemmerich closed 1 month ago

HomeroKemmerich commented 2 months ago

Frontmatter options:

Since the package receives an object and turns it into markdown text, it could very well implement a key-value pattern to implement yaml frontmatter as well.

Given this ts-markdown code

frontmatter({
    key: value
})

Expected

---
key: value
---