Now to actually render the markdown put this in your +page.svelte:
Yes it's really that simple, it only takes 4 lines of code.
Now that's when you only need a static import, when you start getting dynamic that's where things get a little messy.
Since we can't use the same import statement, we have to pivot to the import() function.
First get the slug with a load function in a +page.js file:
Then you'll be able to use it in your +page.svelte:
Syntax highlighting
Now for syntax highligting it's very simple, configure your svelte.config.js like so:
Import a css file in your main css for the desired theme and you're good to go.
Components -- templates
Components are fairly simple, you just create a svelte file like Nav.svelte they always start with a capital letter, I don't think it's necessary but it's definitely a convention.
Then you import it like we did with the markdown file at the start of the article.
Anything you need you can find in the official docs but here are the basic rules for making a component: