Merge branch 'sh-fix-mermaid-start-on-load-typo' into 'master'

Fix Mermaid drawings not loading on some browsers

Closes #42052

See merge request gitlab-org/gitlab-ce!16537
This commit is contained in:
Jacob Schatz 2018-01-18 11:40:06 +00:00
commit 50a649530a
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