Browse Source

fix: AsciiDoc preview updating alongside new headers

master
limina1 6 months ago
parent
commit
50c02c6363
  1. 6
      src/lib/components/ZettelEditor.svelte

6
src/lib/components/ZettelEditor.svelte

@ -54,10 +54,8 @@ import Asciidoctor from "asciidoctor";
let contentType = $state<'article' | 'scattered-notes' | 'none'>('none'); let contentType = $state<'article' | 'scattered-notes' | 'none'>('none');
// Update editor when content changes externally // Note: updateEditorContent() is only called manually when needed
$effect(() => { // The automatic effect was causing feedback loops with user typing
updateEditorContent();
});
// Effect to update syntax highlighting when parsedSections change // Effect to update syntax highlighting when parsedSections change
$effect(() => { $effect(() => {

Loading…
Cancel
Save