From b6743c63fc94959c9c4b38f7f9aec6678811e5c5 Mon Sep 17 00:00:00 2001 From: Daniel Norman Date: Wed, 22 Apr 2026 14:56:06 +0200 Subject: [PATCH] Fix inline emphasis tags in markdown output - Without strong, **bold** rendered as plain text since marked emits and DOMPurify stripped the unknown tag - Add strong, b, i, del, s to DOMPurify allow-list - Cover the other inline emphasis tags authors may write as raw HTML or that GFM strikethrough emits () --- src/lib/markdown.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/lib/markdown.ts b/src/lib/markdown.ts index 9c024a61e..c23899832 100644 --- a/src/lib/markdown.ts +++ b/src/lib/markdown.ts @@ -31,14 +31,17 @@ dompurify.setConfig({ ], ALLOWED_TAGS: [ "a", + "b", "blockquote", "br", "code", "dd", + "del", "div", "dl", "dt", "em", + "i", "h1", "h2", "h3", @@ -53,6 +56,8 @@ dompurify.setConfig({ "p", "pre", "radicle-external-link", + "s", + "strong", "table", "tbody", "td",