Mermaid diagrams apply custom stroke to text
Steps to reproduce
- create a mermaid diagram in Markdown
- set custom stroke color and width
What is the current bug behavior?
Stroke is applied to text and makes it unreadable:
graph LR
First-->Second;
Second-->Third;
Third-->First;
classDef node stroke:#0000ff,stroke-width:4px;
What is the expected correct behavior?
Stroke only applies to lines not to text:
(output of Mermaid Live Editor)
Possible fixes
This seems to be an upstream issue in mermaid and only happens if HTML labels are disabled. This is the case for GitLab because of security problems (see https://gitlab.com/gitlab-org/gitlab-ce/issues/45906#note_115991118).
Edited by Inactive Account