suppress mermaidjs errors (#7388)

Signed-off-by: Victor Ilyushchenko <alt13ri@gmail.com>
This commit is contained in:
Victor Ilyushchenko
2024-12-09 13:45:56 +07:00
committed by GitHub
parent 52b21efee7
commit e41a6fee14
@@ -329,7 +329,8 @@ async function renderMermaidDiagram (code: string, theme: MermaidConfig['theme']
securityLevel: 'loose',
fontFamily: 'var(--font-family)',
logLevel: 5,
theme
theme,
suppressErrorRendering: true
})
const id = `mermaid-diagram-${Math.random().toString(36).substring(2, 9)}`