fix(ui): preserve SVG tags in DOMPurify config for KaTeX math rendering (#25866)
This commit is contained in:
parent
c235ba1bef
commit
518503b29b
1 changed files with 2 additions and 0 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue