mirror of
https://github.com/thiloho/archtika.git
synced 2025-11-22 10:51:36 +01:00
Set default value for markdown preview and improve error for collab
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user