fix: add missing initMermaid() call + skip mermaid blocks in highlight.js
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user