Skip to content

Commit 402abdf

Browse files
committed
[10] fix: ban version v3.1.7 of DOMPurify
[DOMPurify v3.1.7][1] forbids the use of `<foreignElement>` for HTML inside of an `<svg>` element, which breaks many mermaid diagrams. It is likely that v3.1.8 will add a new option that will allow us to re-enable this behaviour, but v3.1.7 definitely does not work. (cherry picked from commit de2c05c) [1]: https://github.com/cure53/DOMPurify/releases/tag/3.1.7 See: cure53/DOMPurify#1002 Fix: #5904
1 parent 8d815f8 commit 402abdf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/mermaid/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
"d3-sankey": "^0.12.3",
6969
"dagre-d3-es": "7.0.10",
7070
"dayjs": "^1.11.7",
71-
"dompurify": "^3.0.5",
71+
"dompurify": "^3.0.5 <3.1.7",
7272
"elkjs": "^0.9.0",
7373
"katex": "^0.16.9",
7474
"khroma": "^2.0.0",

pnpm-lock.yaml

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)