Add suppressErrorRendering to mermaid config

This commit is contained in:
yangdx 2025-07-16 01:01:22 +08:00
parent b44c8d46a5
commit e54bcff85c

View file

@ -188,6 +188,7 @@ const CodeHighlight = memo(({ className, children, node, renderAsDiagram = false
startOnLoad: false,
theme: theme === 'dark' ? 'dark' : 'default',
securityLevel: 'loose',
suppressErrorRendering: true,
});
// Show loading indicator