Browse Source

Fix mermaid import (it uses ESModule now) (#18382)

tags/v1.15.11
wxiaoguang 3 years ago committed by GitHub
parent
commit
f7f4129f52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      web_src/js/markup/mermaid.js

2
web_src/js/markup/mermaid.js

@ -11,7 +11,7 @@ function displayError(el, err) {
export async function renderMermaid(els) {
if (!els || !els.length) return;
const mermaid = await import(/* webpackChunkName: "mermaid" */'mermaid');
const {default: mermaid} = await import(/* webpackChunkName: "mermaid" */'mermaid');
mermaid.initialize({
mermaid: {

Loading…
Cancel
Save