May 27, 2025
Back to Blog

Svex up your markdown

Markdown is pretty good but sometimes you just need more.

Luke Hagar
Tags: mdsvexftwrofl

Svex up your markdown

This is an example of a post written in markdown. and loaded via MDSvex.

MDSvex is a Svelte project that allows you to write markdown files and have them compiled into Svelte components.

Good stuff in your markdown

Markdown is pretty good but sometimes you just need more.

Sometimes you need a boinger like this:

Not many people have a boinger right in their markdown.

Markdown in your markdown

Sometimes what you wrote last week is so good that you just have to include it again.

I’m not gonna stand in the way of your egomania.

What i wrote last week

Why am i so smart, how is this possible.

0

Me, May 2019

Yeah, thats right you can put wigdets in markdown (.svx files or otherwise). You can put markdown in widgets too.

I wasn’t joking

	This is real life

Sometimes you need your widgets inlined (like this: 45 ) because why shouldn’t you. Obviously you have access to values defined in YAML (namespaced under metadata) and anything defined in an fenced js exec block can be referenced directly.

Normal markdown stuff works too:

likethis
tablehere

And this and THIS. And other stuff. You can also use all your favorite Svelte features, like each blocks:

  • 1
  • 2
  • 3
  • 4
  • boo

and all the other good Svelte stuff.