From 381d360d5804e02afa399624071c0b3f173fa717 Mon Sep 17 00:00:00 2001 From: David Mehren Date: Thu, 2 Dec 2021 19:11:28 +0100 Subject: [PATCH] Fix mermaid import Signed-off-by: David Mehren --- public/js/extra.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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')