1.3 KB46 lines
Blame
1<!doctype html>
2<html>
3 <head>
4 <meta charset="utf-8" />
5 <meta http-equiv="X-UA-Compatible" content="IE=edge" />
6 <title>Mermaid Quick Test Page</title>
7 <link rel="icon" type="image/png" href="data:image/png;base64,iVBORw0KGgo=" />
8 <style>
9 body {
10 font-family: 'trebuchet ms', verdana, arial;
11 }
12 </style>
13 </head>
14 <body>
15 <pre class="mermaid">
16 graph TD
17 A[Christmas] -->|Get money| B(Go shopping)
18 subgraph 1test["id starting with number"]
19 A
20 end
21 style 1test fill:#F99,stroke-width:2px,stroke:#F0F
22 </pre>
23 <pre class="mermaid">
24 graph TD
25 A.a[Christmas]:::someclass -->|Get money| B(Go shopping):::someclass
26 subgraph test["id starting with number"]
27 A.a
28 end
29 style test fill:#F99,stroke-width:2px,stroke:#F0F
30 classDef someclass fill:#f96;
31 </pre>
32 <pre class="mermaid">
33 graph TD
34 9e122290-->82072290_1ec3_e711_8c5a_005056ad0002
35 style 9e122290 fill:#F99,stroke-width:2px,stroke:#F0F
36 </pre>
37 <script type="module">
38 import mermaid from './mermaid.esm.mjs';
39 function showFullFirstSquad(elemName) {
40 console.log('show ' + elemName);
41 }
42 mermaid.initialize({ startOnLoad: true, securityLevel: 'loose', logLevel: 1 });
43 </script>
44 </body>
45</html>
46