joshnuss / svelte-markdoc

Markdoc preprocessor for Svelte
34 stars 4 forks source link

Scope frontmatter #2

Closed bayre closed 2 years ago

bayre commented 2 years ago

The examples on https://markdoc.io/ surface frontmatter variables under $markdoc.frontmatter.blah, while here the preprocessor seems to make $blah a top level variable. This threw me a bit when I started copying examples across.

If you're happy with this change I think there's one snippet in the README that would need updating too.