Use marked for markdown parsing

This commit is contained in:
thiloho
2024-08-23 18:43:52 +02:00
parent a833d0307c
commit 5e4ee45004
14 changed files with 94 additions and 214 deletions

View File

@@ -33,7 +33,7 @@
<h1>{title}</h1>
<nav class="operations__nav">
<ul>
<ul class="unpadded">
<li>
<a href="/website/{id}">Settings</a>
</li>
@@ -56,7 +56,11 @@
{#if fullPreview}
<iframe src={previewContent} title="Preview"></iframe>
{:else}
{@html md.render(previewContent)}
{#await md(previewContent)}
<p>Loading preview...</p>
{:then content}
{@html content}
{/await}
{/if}
</div>