fix: add missing initMermaid() call + skip mermaid blocks in highlight.js
CI / lint (push) Successful in 19s
CI / security (push) Successful in 13s
CI / test (push) Failing after 23s
CI / build (push) Has been skipped

This commit is contained in:
2026-06-05 07:43:19 -04:00
parent 69e86c239b
commit ccb0fb3e97
2 changed files with 5 additions and 0 deletions
+2
View File
@@ -248,6 +248,8 @@ function flushIcons() {
}
function safeHighlight(block) {
// Skip mermaid blocks — they're rendered by Mermaid.js, not highlighted
if (block.className && block.className.indexOf('language-mermaid') !== -1) return;
if (typeof hljs !== "undefined" && hljs.highlightElement) {
try {
hljs.highlightElement(block);