mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-14 12:10:45 +03:00
fix(ui): preserve SVG tags in DOMPurify config for KaTeX math rendering (#25866)
This commit is contained in:
committed by
GitHub
Unverified
parent
c235ba1bef
commit
518503b29b
@@ -33,6 +33,8 @@ const config = {
|
||||
SANITIZE_NAMED_PROPS: true,
|
||||
FORBID_TAGS: ["style"],
|
||||
FORBID_CONTENTS: ["style", "script"],
|
||||
ADD_TAGS: ["svg", "path"],
|
||||
ADD_ATTR: ["d", "viewBox", "preserveAspectRatio", "xmlns"],
|
||||
}
|
||||
|
||||
const iconPaths = {
|
||||
|
||||
Reference in New Issue
Block a user