jakelazaroff / radish

A delightful React-based static site generator that outputs plain HTML & CSS.
https://radishjs.com
95 stars 1 forks source link

Refactor front matter #6

Closed jakelazaroff closed 1 year ago

jakelazaroff commented 1 year ago

Refactors front matter parsing to only use gray-matter, rather than a combination of that and MDX plugins. It makes the front matter accessible within the Markdown by injecting import statements into the generated code, then hooking into esbuild to load the contents.

This should add support for url references within Markdown front matter, fixing https://github.com/jakelazaroff/radish/issues/5, and also support TOML delimited by +++.