Skip to content

Commit 45d61c1

Browse files
committed
address comments
1 parent 133b4bd commit 45d61c1

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

apps/sim/lib/mermaid/validate.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,6 @@ export interface MermaidValidationResult {
99
export async function validateMermaidSource(source: string): Promise<MermaidValidationResult> {
1010
try {
1111
const { default: mermaid } = await import('mermaid')
12-
mermaid.initialize({
13-
startOnLoad: false,
14-
securityLevel: 'strict',
15-
theme: 'default',
16-
})
17-
mermaid.setParseErrorHandler?.(() => undefined)
1812
await mermaid.parse(source)
1913
return { ok: true }
2014
} catch (error) {

0 commit comments

Comments
 (0)