diff --git a/public/js/extra.js b/public/js/extra.js index 52879e1a8..e9011082c 100644 --- a/public/js/extra.js +++ b/public/js/extra.js @@ -387,7 +387,7 @@ export function finishView (view) { const $ele = $(value).closest('pre') require.ensure([], function (require) { try { - const mermaid = require('mermaid') + const mermaid = require('mermaid').default mermaid.startOnLoad = false mermaid.mermaidAPI.parse($value.text()) $ele.addClass('mermaid')