Fix Mermaid drawings not loading on some browsers
As mentioned in https://github.com/knsv/mermaid/issues/291#issuecomment-287673609, the
parameter should be `startOnLoad` instead of `loadOnStart`. In addition, `mermaid.initialize()`
expects to see `startOnLoad` in the `mermaid` hash:
6cd5ffe637/src/mermaid.js (L118)
Closes #42052
This commit is contained in:
parent
3228ac06a0
commit
b1261ad942
2 changed files with 10 additions and 1 deletions
|
@ -19,7 +19,11 @@ export default function renderMermaid($els) {
|
|||
|
||||
import(/* webpackChunkName: 'mermaid' */ 'blackst0ne-mermaid').then((mermaid) => {
|
||||
mermaid.initialize({
|
||||
loadOnStart: false,
|
||||
// mermaid core options
|
||||
mermaid: {
|
||||
startOnLoad: false,
|
||||
},
|
||||
// mermaidAPI options
|
||||
theme: 'neutral',
|
||||
});
|
||||
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
title: Fix Mermaid drawings not loading on some browsers
|
||||
merge_request:
|
||||
author:
|
||||
type: fixed
|
Loading…
Reference in a new issue