mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-16 22:09:57 +02:00
chore: Add suppressErrorRendering to config
This commit is contained in:
@@ -158,6 +158,11 @@ export interface MermaidConfig {
|
|||||||
dompurifyConfig?: DOMPurifyConfiguration;
|
dompurifyConfig?: DOMPurifyConfiguration;
|
||||||
wrap?: boolean;
|
wrap?: boolean;
|
||||||
fontSize?: number;
|
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;
|
suppressErrorRendering?: boolean;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
@@ -217,6 +217,12 @@ properties:
|
|||||||
fontSize:
|
fontSize:
|
||||||
type: number
|
type: number
|
||||||
default: 16
|
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)
|
$defs: # JSON Schema definition (maybe we should move these to a seperate file)
|
||||||
BaseDiagramConfig:
|
BaseDiagramConfig:
|
||||||
|
Reference in New Issue
Block a user