Просмотр исходного кода

Suppress mermaid error rendering (#5308)

Matt Rubens 6 месяцев назад
Родитель
Сommit
a1ae29cdcd
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      webview-ui/src/components/common/MermaidBlock.tsx

+ 1 - 0
webview-ui/src/components/common/MermaidBlock.tsx

@@ -46,6 +46,7 @@ mermaid.initialize({
 	startOnLoad: false,
 	securityLevel: "loose",
 	theme: "dark",
+	suppressErrorRendering: true,
 	themeVariables: {
 		...MERMAID_THEME,
 		fontSize: "16px",