sveltejs / examples

A collection of Svelte(Kit) examples
MIT License
35 stars 5 forks source link

Sveltekit Blog Example #5

Open braebo opened 1 year ago

braebo commented 1 year ago

A minimal blog with simple DX that supports markdown would be a great addition.

karimfromjordan commented 1 year ago

Do you have any specific wishes/things you want to see in such an example? I've actually already started work on it and am experimenting with a few things. Was considering to make it a full template in its own repo but could also go in here. This is a list of things I definitely wanted to implement:

braebo commented 1 year ago

A part of me thinks (we should have a simple one and a kitchen sink one, but ultimately every blog would benefit from the extra features and most will ultimately need to re-invent many wheels, so it makes sense. I dig it!

I think Sean's starter swyxkit is one of the most comprehensive I've seen and could be a great reference.

braebo commented 1 year ago

Also -- is mdsvex not the blessed path for markdown anymore?

karimfromjordan commented 1 year ago

I actually changed my mind a bit and was thinking that maybe we could create simple integration examples for Markdown, MDX (mdsvex) and Markdoc and a full blog template in a separate repo but with plain Markdown only. mdsvex is still used by many people but it's only necessary if you want to render Svelte components within your Markdown. Will check out swyxkit, thanks.

I'm closely following what Astro does. They are currently in the process of integrating Markdoc as an alternative and they hope it will potentially solve two problems with MDX - performance and fetching remote content from e.g. a CMS which is not possible with MDX content. Will be interesting to see what they learn from this.