We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 133b4bd commit 45d61c1Copy full SHA for 45d61c1
1 file changed
apps/sim/lib/mermaid/validate.ts
@@ -9,12 +9,6 @@ export interface MermaidValidationResult {
9
export async function validateMermaidSource(source: string): Promise<MermaidValidationResult> {
10
try {
11
const { default: mermaid } = await import('mermaid')
12
- mermaid.initialize({
13
- startOnLoad: false,
14
- securityLevel: 'strict',
15
- theme: 'default',
16
- })
17
- mermaid.setParseErrorHandler?.(() => undefined)
18
await mermaid.parse(source)
19
return { ok: true }
20
} catch (error) {
0 commit comments