Set default value for markdown preview and improve error for collab

This commit is contained in:
thiloho
2024-09-27 19:31:43 +02:00
parent d57753811c
commit 8ebe09a0d4
4 changed files with 24 additions and 5 deletions

View File

@@ -65,7 +65,10 @@
{#if fullPreview}
<iframe src={previewContent.value} title="Preview"></iframe>
{:else}
{@html md(previewContent.value, Object.keys($page.params).length > 1 ? true : false)}
{@html md(
previewContent.value || "Write some markdown content to see a live preview here",
Object.keys($page.params).length > 1 ? true : false
)}
{/if}
</div>