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:
Stan Hu 2018-01-17 14:56:25 -08:00
parent 3228ac06a0
commit b1261ad942
2 changed files with 10 additions and 1 deletions

View File

@ -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',
});

View File

@ -0,0 +1,5 @@
---
title: Fix Mermaid drawings not loading on some browsers
merge_request:
author:
type: fixed