pablo-abc / svelte-markdown

Markdown parser to svelte components
MIT License
360 stars 50 forks source link

Feature Request: front-matter support #46

Closed git-no closed 2 years ago

git-no commented 2 years ago

A feature request would be the support of front-matter in svelte-markdown. My markdown file has a {title}from front-matter but does not resolve the value.

pablo-abc commented 2 years ago

Sorry for the delay! Front-matter's purpose is to add metadata that will not necessarily be rendered to your markdown. Adding templating behaviour like this feels out of scope for this package. Specially since it's a feature not provided/expected from most markdown parsers. I'll be closing this since the only objective of this package is to render markdown as Svelte components.