From 79219c60f04b83b7fe7f8325f71b58ae054c4938 Mon Sep 17 00:00:00 2001 From: Bradley Axen Date: Fri, 6 Feb 2026 17:11:12 -0800 Subject: [PATCH] fix: use marked + DOMPurify for note markdown rendering Replace the hand-rolled regex-based markdown renderer in NoteViewerModal with the marked library + DOMPurify sanitization, matching the approach already used by StreamingMessages and LiveSessionView. This fixes rendering issues with complex markdown (nested lists, ordered lists, blockquotes, tables, etc.) and adds CSS styles for the additional HTML elements that marked produces. --- staged/src/lib/NoteViewerModal.svelte | 105 +++++++++++--------------- 1 file changed, 46 insertions(+), 59 deletions(-) diff --git a/staged/src/lib/NoteViewerModal.svelte b/staged/src/lib/NoteViewerModal.svelte index f46eca1..ef125eb 100644 --- a/staged/src/lib/NoteViewerModal.svelte +++ b/staged/src/lib/NoteViewerModal.svelte @@ -1,61 +1,3 @@ - -