We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1f537b commit 7c5a2d4Copy full SHA for 7c5a2d4
_javascript/modules/components/mermaid.js
@@ -12,14 +12,14 @@ function refreshTheme(event) {
12
13
[...mermaidList].forEach((elem) => {
14
const svgCode = elem.previousSibling.children.item(0).innerHTML;
15
- elem.innerHTML = svgCode;
+ elem.textContent = svgCode;
16
elem.removeAttribute('data-processed');
17
});
18
19
const newTheme = themeMapper[Theme.visualState];
20
21
mermaid.initialize({ theme: newTheme });
22
- mermaid.init(undefined, `.${MERMAID}`);
+ mermaid.init(null, `.${MERMAID}`);
23
}
24
25
0 commit comments