chore: Remove mermaid.default

Co-authored-by: Alois Klink <alois@aloisklink.com>
This commit is contained in:
Sidharth Vinod
2023-08-12 20:10:51 +05:30
parent dce65c6059
commit d8b91dbcf6
3 changed files with 7 additions and 20 deletions

View File

@@ -12,12 +12,12 @@ graph TB
<script src="/mermaid.min.js"></script>
<script>
mermaid.default.initialize({
mermaid.initialize({
startOnLoad: true,
});
const value = `graph TD\nHello --> World`;
const el = document.getElementById('d2');
mermaid.default.render('did', value).then(({ svg }) => {
mermaid.render('did', value).then(({ svg }) => {
console.log(svg);
el.innerHTML = svg;
if (window.Cypress) {