mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-01-09 19:22:05 +00:00
Fix mermaid import
Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
b87fd60314
commit
381d360d58
1 changed files with 1 additions and 1 deletions
|
@ -387,7 +387,7 @@ export function finishView (view) {
|
||||||
const $ele = $(value).closest('pre')
|
const $ele = $(value).closest('pre')
|
||||||
require.ensure([], function (require) {
|
require.ensure([], function (require) {
|
||||||
try {
|
try {
|
||||||
const mermaid = require('mermaid')
|
const mermaid = require('mermaid').default
|
||||||
mermaid.startOnLoad = false
|
mermaid.startOnLoad = false
|
||||||
mermaid.mermaidAPI.parse($value.text())
|
mermaid.mermaidAPI.parse($value.text())
|
||||||
$ele.addClass('mermaid')
|
$ele.addClass('mermaid')
|
||||||
|
|
Loading…
Reference in a new issue