chore: Add example page link in index

This commit is contained in:
Sidharth Vinod
2024-03-23 15:07:21 +05:30
parent 26ed819664
commit 100123b43e
3 changed files with 3 additions and 1 deletions

View File

@@ -39,6 +39,8 @@ graph TB
<script type="module">
import mermaid from '/mermaid.esm.mjs';
import flowchartELK from '/mermaid-flowchart-elk.esm.mjs';
await mermaid.registerExternalDiagrams([flowchartELK]);
async function render(str) {
const { svg } = await mermaid.render('dynamic', str);
document.getElementById('dynamicDiagram').innerHTML = svg;