diff --git a/src/lib/components/Editor.svelte b/src/lib/components/Editor.svelte index 8f3e6a5..4502c80 100644 --- a/src/lib/components/Editor.svelte +++ b/src/lib/components/Editor.svelte @@ -3283,7 +3283,7 @@ // Pre-process: strip list-separator comments before markdown-it. // markdown-it treats as an HTML block start, swallowing the // next line (e.g. an image) as raw HTML instead of parsing it. - src = src.replace(//g, ''); + src = src.replace(//g, '\n'); // Pre-process: preserve blank lines before image-only lines // markdown-it collapses blank lines into paragraph breaks, losing the empty paragraph.