mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-21 06:53:17 +08:00
5f41b65af1
Co-authored-by: Alois Klink <alois@aloisklink.com>
53 lines
1.2 KiB
HTML
53 lines
1.2 KiB
HTML
<!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
|
|
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
|
|
>
|
|
</div>
|
|
<script type="module">
|
|
import mermaid from './mermaid.esm.mjs';
|
|
const shouldSuppress =
|
|
new URLSearchParams(window.location.search).get('suppressErrorRendering') === 'true';
|
|
mermaid.initialize({ startOnLoad: true, suppressErrorRendering: shouldSuppress });
|
|
</script>
|
|
</body>
|
|
</html>
|