From 4d900b2f46dca303265d1df02e14f6d55fb957de Mon Sep 17 00:00:00 2001 From: Kagura Date: Thu, 21 May 2026 14:52:03 +0800 Subject: [PATCH] fix(ui): preserve target attribute in DOMPurify config for markdown links (#28598) --- packages/ui/src/components/markdown.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/ui/src/components/markdown.tsx b/packages/ui/src/components/markdown.tsx index 7ee73af10f..e12b661dba 100644 --- a/packages/ui/src/components/markdown.tsx +++ b/packages/ui/src/components/markdown.tsx @@ -34,7 +34,7 @@ const config = { FORBID_TAGS: ["style"], FORBID_CONTENTS: ["style", "script"], ADD_TAGS: ["svg", "path"], - ADD_ATTR: ["d", "viewBox", "preserveAspectRatio", "xmlns"], + ADD_ATTR: ["d", "viewBox", "preserveAspectRatio", "xmlns", "target"], } const iconPaths = {