Skip to content

Commit

Permalink
Fix mermaid import
Browse files Browse the repository at this point in the history
Signed-off-by: David Mehren <[email protected]>
  • Loading branch information
davidmehren committed Dec 2, 2021
1 parent b87fd60 commit 381d360
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/js/extra.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 381d360

Please sign in to comment.