From ed41e5529a77bd7825bfb95536148da6a2692997 Mon Sep 17 00:00:00 2001 From: Defelo Date: Thu, 4 Sep 2025 20:17:02 +0200 Subject: [PATCH] Add width and height to allowed attributes --- src/lib/markdown.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/markdown.ts b/src/lib/markdown.ts index 772337b1f..9c024a61e 100644 --- a/src/lib/markdown.ts +++ b/src/lib/markdown.ts @@ -18,14 +18,16 @@ dompurify.setConfig({ "align", "checked", "class", + "height", "href", "id", "name", + "src", "target", "text", "title", - "src", "type", + "width", ], ALLOWED_TAGS: [ "a",