Make markdown synchronous and add ability to toggle TOC

This commit is contained in:
thiloho
2024-08-24 20:34:06 +02:00
parent 3c49d1e2f3
commit 891cdb46c8
7 changed files with 43 additions and 33 deletions

View File

@@ -56,11 +56,7 @@
{#if fullPreview}
<iframe src={previewContent} title="Preview"></iframe>
{:else}
{#await md(previewContent)}
<p>Loading preview...</p>
{:then content}
{@html content}
{/await}
{@html md(previewContent)}
{/if}
</div>