mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-13 15:44:56 +00:00
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,
|
||||
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