sveltejs / svelte-preprocess

A ✨ magical ✨ Svelte preprocessor with sensible defaults and support for: PostCSS, SCSS, Less, Stylus, Coffeescript, TypeScript, Pug and much more.
MIT License
1.73k stars 147 forks source link

Add Support For Markdown #549

Closed PizzaNachos closed 1 year ago

PizzaNachos commented 1 year ago

I would like to add a blog to my svelteKit website and statically render markdown text.

There are other svelte markdown preproscessors but having it in the "Official" one could help Ex:

Heading 1

heading 2

->

Heading 1

heading 2

ect...

kaisermann commented 1 year ago

While the idea makes sense, I'm not sure how useful would a barebones markdown transformer be. I don't think a lot of people just want to render markdown without importing components, etc. With that in mind, I think it's better to use https://github.com/pngwn/MDsveX if one wants to add support for markdown in their svelte files.