skip mermaid

This commit is contained in:
Michael Freno
2026-01-04 10:34:08 -05:00
parent 38ea2c15c2
commit b81de6441b

View File

@@ -105,6 +105,9 @@ export default function PostBodyClient(props: PostBodyClientProps) {
const pre = codeBlock.parentElement; const pre = codeBlock.parentElement;
if (!pre) return; if (!pre) return;
// Skip mermaid diagrams
if (pre.dataset.type === "mermaid") return;
// Check if already processed (has header with copy button) // Check if already processed (has header with copy button)
const existingHeader = pre.previousElementSibling; const existingHeader = pre.previousElementSibling;
if ( if (