Upgrade to Mermaid v8.5.2 See merge request gitlab-org/gitlab!34028
Attach a file by drag & drop or click to upload