diff --git a/src/lib/app/markdown/MarkdownEditor.svelte b/src/lib/app/markdown/MarkdownEditor.svelte index e8f88083..4b1bc5bc 100644 --- a/src/lib/app/markdown/MarkdownEditor.svelte +++ b/src/lib/app/markdown/MarkdownEditor.svelte @@ -92,7 +92,7 @@ tools?: boolean disabled?: boolean rows?: number - beforePreview?: (input: string) => string + beforePreview?: (input?: string) => string previewing?: boolean class?: ClassValue customLabel?: import('svelte').Snippet @@ -101,14 +101,14 @@ let { images = true, - value = $bindable(''), + value = $bindable(), label = undefined, previewButton = true, tools = true, disabled = false, rows = 2, // should be preprocess instead - beforePreview = (input) => input, + beforePreview = (input) => input ?? '', previewing = $bindable(false), class: clazz = '', customLabel, diff --git a/src/lib/feature/community/CommunityItemBig.svelte b/src/lib/feature/community/CommunityItemBig.svelte index e8f2c411..858e1fc6 100644 --- a/src/lib/feature/community/CommunityItemBig.svelte +++ b/src/lib/feature/community/CommunityItemBig.svelte @@ -47,12 +47,15 @@ aria-label={$t('aria.postDecor.openLink')} class="absolute inset-0 z-10" > -