From a0b1fa048181751028f0b1e9d6d108bac11adc86 Mon Sep 17 00:00:00 2001 From: Yuri Karamian Date: Fri, 19 Jun 2026 12:03:49 +0200 Subject: [PATCH] Fix images not rendering after comment in source mode (#87) --- src/lib/components/Editor.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/components/Editor.svelte b/src/lib/components/Editor.svelte index b1755d5..8f3e6a5 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(/^\s*$/gm, ''); + src = src.replace(//g, ''); // Pre-process: preserve blank lines before image-only lines // markdown-it collapses blank lines into paragraph breaks, losing the empty paragraph.