mirror of
https://github.com/thiloho/archtika.git
synced 2025-11-22 10:51:36 +01:00
Make markdown synchronous and add ability to toggle TOC
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user