Force mermaid securityLevel to strict

'loose' allowed HTML and click directives in diagram labels,
bypassing the DOMPurify pass on the surrounding markdown.
This commit is contained in:
Rūdolfs Ošiņš
2026-05-07 18:31:28 +02:00
parent 9e268d9ac0
commit 3b85f70f88
+1 -1
View File
@@ -105,7 +105,7 @@
// Initialize mermaid with error handling configuration
mermaid.initialize({
startOnLoad: false,
securityLevel: 'loose',
securityLevel: "strict",
});
for (const e of container.querySelectorAll("a")) {