{#await md_promise} {:then}

Because Svelte does a fairly correct JavaScript parse of the content={} you can use the ` (back-tick) syntax to write your markdown directly.

{/await}

Originally I had this much more complicated using the Svelte slots, but it turns out to be very complicated and also doesn't work with rendered pages at all. This style works with rendered pages, which is probably the more common way you would use Markdown.

Security Warning

There is NO HTML sanitization on this output, so do NOT render user inupt without adding some form of sanitization like with dompurify. Consult the snardown documentation for more information.