Commit df351268 authored by Fatih Acet's avatar Fatih Acet

Merge branch 'sh-update-mermaid' into 'master'

Update Mermaid to 8.1.0

Closes #60869

See merge request gitlab-org/gitlab-ce!30036
parents e688f3db 21d8c8ca
......@@ -59,6 +59,14 @@ export default function renderMermaid($els) {
mermaid.init(undefined, el, id => {
const svg = document.getElementById(id);
// As of https://github.com/knsv/mermaid/commit/57b780a0d,
// Mermaid will make two init callbacks:one to initialize the
// flow charts, and another to initialize the Gannt charts.
// Guard against an error caused by double initialization.
if (svg.classList.contains('mermaid')) {
return;
}
svg.classList.add('mermaid');
// pre > code > svg
......
---
title: Update Mermaid to 8.1.0
merge_request: 30036
author:
type: fixed
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment