mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-24 05:35:15 +00:00
fix(ui): preserve target attribute in DOMPurify config for markdown links (#28598)
This commit is contained in:
parent
b2661c4a03
commit
4d900b2f46
1 changed files with 1 additions and 1 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue