diff options
author | Ole Mussmann <gitlab+account@ole.mn> | 2025-01-25 21:06:35 +0100 |
---|---|---|
committer | Ole Mussmann <gitlab+account@ole.mn> | 2025-01-25 21:09:02 +0100 |
commit | a9d730a4c801fba72570291409c8c82c126f157b (patch) | |
tree | 6609d20275d81e8114ae36a692ecaf057fd1f8fd /static/js/copy-code.js | |
parent | 22bfe56c1316437641509fb61c36b32048206662 (diff) |
fix mermaid diagram rendering
closes #69
Diffstat (limited to 'static/js/copy-code.js')
-rw-r--r-- | static/js/copy-code.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/static/js/copy-code.js b/static/js/copy-code.js index 67fd936..2de3cda 100644 --- a/static/js/copy-code.js +++ b/static/js/copy-code.js @@ -2,6 +2,7 @@ document.addEventListener("DOMContentLoaded", function () { const codeBlocks = document.querySelectorAll("pre"); codeBlocks.forEach((codeBlock) => { + if (codeBlock.className == "mermaid") return; const copyButton = document.createElement("button"); copyButton.className = "copy-code-button"; copyButton.textContent = "copy"; |