Svelte-Kit + mdsvex

Markdown in Svelte, and Svelte in Markdown, powered by Svelte-Kit and mdsvex.

To use

This example uses pnpm. Install it if you don't have it already:

npm i -g pnpm

Then install the dependencies for this example:

pnpm i

Then run it:

pnpm run dev

Now open a browser to http://localhost:3000/ and you should see the Svelte welcome page. Now try visiting the following URLs:

These pages will be served up by src/routes/[slug].svx, src/routes/[slug].svx (again), src/routes/blogpost.svx, and src/routes/foo.svelte in that order.

Top categories

svelte logo

Want a Svelte site built?

Hire a Svelte developer
Loading Svelte Themes