From 481f213b21eef3707ed04f70fc7df0cc08536174 Mon Sep 17 00:00:00 2001 From: Stan Hu Date: Fri, 26 Apr 2019 11:59:17 -0700 Subject: [PATCH] Enable HTML tags to make Mermaid render dotted lines Flowcharts appear to be missing styles if HTML tags are disabled for flowchart labels. They appear to disabled because some browsers https://github.com/knsv/mermaid/issues/303 may omit labels if they are present, but in testing with Microsoft Edge this doesn't appear to be an issue now. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/60869 --- app/assets/javascripts/behaviors/markdown/render_mermaid.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/behaviors/markdown/render_mermaid.js b/app/assets/javascripts/behaviors/markdown/render_mermaid.js index 798114b4b0bfd..536ba7464f794 100644 --- a/app/assets/javascripts/behaviors/markdown/render_mermaid.js +++ b/app/assets/javascripts/behaviors/markdown/render_mermaid.js @@ -31,7 +31,7 @@ export default function renderMermaid($els) { // mermaidAPI options theme: 'neutral', flowchart: { - htmlLabels: false, + htmlLabels: true, }, });