chore: Add suppressErrorRendering to config

This commit is contained in:
Sidharth Vinod 2023-09-06 12:59:02 +05:30
parent c3b86b687c
commit b09cdc0a18
No known key found for this signature in database
GPG Key ID: FB5CCD378D3907CD
2 changed files with 11 additions and 0 deletions

View File

@ -158,6 +158,11 @@ export interface MermaidConfig {
dompurifyConfig?: DOMPurifyConfiguration;
wrap?: boolean;
fontSize?: number;
/**
* Suppresses inserting 'Syntax error' diagram in the DOM.
* This is useful when you want to control how to handle syntax errors in your application.
*
*/
suppressErrorRendering?: boolean;
}
/**

View File

@ -217,6 +217,12 @@ properties:
fontSize:
type: number
default: 16
suppressErrorRendering:
type: boolean
default: false
description: |
Suppresses inserting 'Syntax error' diagram in the DOM.
This is useful when you want to control how to handle syntax errors in your application.
$defs: # JSON Schema definition (maybe we should move these to a seperate file)
BaseDiagramConfig: