fix(mermaid): suppress global error rendering

This commit is contained in:
zhangqianfeng
2026-08-23 01:50:07 +08:00
parent d9b8f15d9e
commit a75928daf1
2 changed files with 15 additions and 1 deletions
+4
View File
@@ -48,6 +48,10 @@ function configureMermaid(): void {
// forcing pure SVG text keeps labels visible and the HTML label channel
// closed (strict already escapes label content).
htmlLabels: false,
// Mermaid 11 renders a large error SVG into document.body before rejecting
// invalid diagrams. The component already has its own error fallback, so
// suppress that global side effect to keep the DSH shell intact.
suppressErrorRendering: true,
theme: isDarkScheme() ? 'dark' : 'default',
})
}