suppress mermaidjs errors (#7388)

Signed-off-by: Victor Ilyushchenko <alt13ri@gmail.com>
This commit is contained in:
Victor Ilyushchenko 2024-12-09 09:45:56 +03:00 committed by GitHub
parent 52b21efee7
commit e41a6fee14
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)}`