pngwn / MDsveX

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

Server-side rendering support #64

Closed akvadrako closed 4 years ago

akvadrako commented 4 years ago

Hello. I just started using MDsveX with sapper and it was all going well until I started testing my site with javascript off. It looks like the markdown isn't be rendered at all.

If this is a bug I can work on a test case. If it's by design then I suggest adding support for server-side rendering (and as a consequence, static site export).

pngwn commented 4 years ago

Mdsvex documents are just svelte components in the end so they should be server rendered just fine. Can you create a repository showing this behaviour?

akvadrako commented 4 years ago

Sorry, it was a problem on my end. Sapper has separate configs for client and server rendering, and I was missing a MDsvex config for the server-side one.