From 3b85f70f88e3637ad6d13b3533d666f0a8d10f06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C5=ABdolfs=20O=C5=A1i=C5=86=C5=A1?= Date: Wed, 6 May 2026 17:04:09 +0200 Subject: [PATCH] Force mermaid securityLevel to strict 'loose' allowed HTML and click directives in diagram labels, bypassing the DOMPurify pass on the surrounding markdown. --- src/components/Markdown.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Markdown.svelte b/src/components/Markdown.svelte index 199d0ff0c..1d602d7f5 100644 --- a/src/components/Markdown.svelte +++ b/src/components/Markdown.svelte @@ -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")) {