diff --git a/src/lib/components/common/RichTextInput.svelte b/src/lib/components/common/RichTextInput.svelte index ebd5950c8..d32eed552 100644 --- a/src/lib/components/common/RichTextInput.svelte +++ b/src/lib/components/common/RichTextInput.svelte @@ -117,7 +117,13 @@ }; onMount(() => { - const content = marked.parse(value); + let content = ''; + try { + content = marked.parse(value); + } catch (error) { + console.error('Error parsing markdown content:', error); + } + editor = new Editor({ element: element, extensions: [