From 50c02c636357448635e9a4d82fc70d9781681e6d Mon Sep 17 00:00:00 2001 From: limina1 Date: Mon, 8 Sep 2025 17:30:34 -0400 Subject: [PATCH] fix: AsciiDoc preview updating alongside new headers --- src/lib/components/ZettelEditor.svelte | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/lib/components/ZettelEditor.svelte b/src/lib/components/ZettelEditor.svelte index 2a88cdd..81284c5 100644 --- a/src/lib/components/ZettelEditor.svelte +++ b/src/lib/components/ZettelEditor.svelte @@ -54,10 +54,8 @@ import Asciidoctor from "asciidoctor"; let contentType = $state<'article' | 'scattered-notes' | 'none'>('none'); - // Update editor when content changes externally - $effect(() => { - updateEditorContent(); - }); + // Note: updateEditorContent() is only called manually when needed + // The automatic effect was causing feedback loops with user typing // Effect to update syntax highlighting when parsedSections change $effect(() => {