mermaid/cypress/platform/suppressError.html

53 lines
1.2 KiB
HTML
Raw Normal View History

2023-09-06 13:09:06 +05:30
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>Mermaid Quick Test Page</title>
<link rel="icon" type="image/png" href="data:image/png;base64,iVBORw0KGgo=" />
</head>
<body>
<div id="test">
<pre class="mermaid">
flowchart
a[This should be visible]
</pre
>
<pre class="mermaid">
flowchart
a --< b
</pre
>
<pre class="mermaid">
flowchart
2023-09-06 13:15:04 +05:30
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
2023-09-06 13:09:06 +05:30
</pre
>
</div>
<script type="module">
import mermaid from './mermaid.esm.mjs';
2023-09-06 13:15:04 +05:30
const shouldSuppress =
new URLSearchParams(window.location.search).get('suppressErrorRendering') === 'true';
mermaid.initialize({ startOnLoad: true, suppressErrorRendering: shouldSuppress });
2023-09-06 13:09:06 +05:30
</script>
</body>
</html>