2020-06-17 23:54:01 +02:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
2022-09-04 21:30:47 +02:00
|
|
|
<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="graph"></div>
|
2020-06-17 23:54:01 +02:00
|
|
|
|
2022-09-04 21:30:47 +02:00
|
|
|
<script src="./mermaid.js"></script>
|
|
|
|
<script>
|
|
|
|
mermaid.init({ startOnLoad: false });
|
2022-01-22 12:36:18 +01:00
|
|
|
|
2022-09-04 21:30:47 +02:00
|
|
|
mermaid.mermaidAPI.initialize({ securityLevel: 'strict' });
|
2022-10-10 16:04:05 +02:00
|
|
|
try {
|
|
|
|
console.log('rendering');
|
|
|
|
mermaid.mermaidAPI.render('graphDiv', `>`);
|
|
|
|
} catch (e) {}
|
2020-06-17 23:54:01 +02:00
|
|
|
|
2022-10-10 16:04:05 +02:00
|
|
|
mermaid.mermaidAPI.render('graphDiv', `graph LR\n a --> b`, (html) => {
|
|
|
|
document.getElementById('graph').innerHTML = html;
|
|
|
|
});
|
2022-09-04 21:30:47 +02:00
|
|
|
</script>
|
|
|
|
</body>
|
2020-06-17 23:54:01 +02:00
|
|
|
</html>
|