fix(ui): preserve SVG tags in DOMPurify config for KaTeX math rendering (#25866)
This commit is contained in:
@@ -33,6 +33,8 @@ const config = {
|
|||||||
SANITIZE_NAMED_PROPS: true,
|
SANITIZE_NAMED_PROPS: true,
|
||||||
FORBID_TAGS: ["style"],
|
FORBID_TAGS: ["style"],
|
||||||
FORBID_CONTENTS: ["style", "script"],
|
FORBID_CONTENTS: ["style", "script"],
|
||||||
|
ADD_TAGS: ["svg", "path"],
|
||||||
|
ADD_ATTR: ["d", "viewBox", "preserveAspectRatio", "xmlns"],
|
||||||
}
|
}
|
||||||
|
|
||||||
const iconPaths = {
|
const iconPaths = {
|
||||||
|
|||||||
Reference in New Issue
Block a user