UNPKG

mermaid

Version:

Markdownish syntax for generating flowcharts, sequence diagrams, class diagrams and gantt charts.

51 lines (45 loc) 1 kB
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <script src="../../dist/mermaid.js"></script> <script> var config = { startOnLoad:true, callback:function(id){ console.log(id,' rendered'); }, flowchart:{ useMaxWidth:true, htmlLabels:true } }; mermaid.initialize(config); </script> <script> function coolAction(){ console.log('Got callback in user defined function'); } </script> <style> .cluster { fill: #fcac93; rx:4px; stroke: grey; } </style> <link rel="stylesheet" href="../../dist/mermaid.forest.css"/> </head> <body> <h1>Issue 211</h1> <div class="mermaid" id="i211"> graph TD subgraph A B subgraph C D end end </div> </body> </html>