mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-19 23:39:50 +02:00
chore: Add suppressErrorRendering to secure flags.
Co-authored-by: Alois Klink <alois@aloisklink.com>
This commit is contained in:
@@ -21,6 +21,24 @@
|
|||||||
<pre class="mermaid">
|
<pre class="mermaid">
|
||||||
flowchart
|
flowchart
|
||||||
a[This should be visible]
|
a[This should be visible]
|
||||||
|
</pre
|
||||||
|
>
|
||||||
|
<pre class="mermaid">
|
||||||
|
---
|
||||||
|
config:
|
||||||
|
suppressErrorRendering: true # This should not affect anything, as suppressErrorRendering is a secure config
|
||||||
|
---
|
||||||
|
flowchart
|
||||||
|
a --< b
|
||||||
|
</pre
|
||||||
|
>
|
||||||
|
<pre class="mermaid">
|
||||||
|
---
|
||||||
|
config:
|
||||||
|
suppressErrorRendering: false # This should not affect anything, as suppressErrorRendering is a secure config
|
||||||
|
---
|
||||||
|
flowchart
|
||||||
|
a --< b
|
||||||
</pre
|
</pre
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
|
@@ -155,7 +155,7 @@ properties:
|
|||||||
in the current `currentConfig`.
|
in the current `currentConfig`.
|
||||||
|
|
||||||
This prevents malicious graph directives from overriding a site's default security.
|
This prevents malicious graph directives from overriding a site's default security.
|
||||||
default: ['secure', 'securityLevel', 'startOnLoad', 'maxTextSize']
|
default: ['secure', 'securityLevel', 'startOnLoad', 'maxTextSize', 'suppressErrorRendering']
|
||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
type: string
|
type: string
|
||||||
|
Reference in New Issue
Block a user