mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-29 02:00:31 +08:00
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:
@@ -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")) {
|
||||
|
||||
Reference in New Issue
Block a user