chore: Remove all non async render/parse/init

This commit is contained in:
Sidharth Vinod
2023-02-19 01:10:15 +05:30
parent 45adc5fb6b
commit d22e8d92c6
13 changed files with 32 additions and 367 deletions

View File

@@ -4,7 +4,7 @@ const mermaid = require('mermaid');
import mindmap from '@mermaid-js/mermaid-mindmap';
const render = async (graph) => {
const svg = await mermaid.renderAsync('dummy', graph);
const svg = await mermaid.render('dummy', graph);
console.log(svg);
document.getElementById('graphDiv').innerHTML = svg;
};