pngwn / MDsveX

A markdown preprocessor for Svelte.
https://mdsvex.pngwn.io
MIT License
2.27k stars 96 forks source link

A frontmatter option #4

Closed ianwalter closed 4 years ago

ianwalter commented 5 years ago

Would you accept a PR for a frontmatter option which would basically be a callback that is passed the attributes value? I'm trying to get the frontmatter data in a less roundabout way. Thanks!

pngwn commented 5 years ago

Is this to access the front-matter data in your bundler config?

ianwalter commented 5 years ago

I'm building tooling that uses MDsveX so I'm actually calling svelte.preprocess directly, not through a bundler, but essentially yes.

pngwn commented 4 years ago

Sorry for the delay. I'm thinking about building some tooling to solve this issue specifically but I don't think a preprocessor is the right place for it.