Backtick method of Text wrapping in flowchart elements causing: 1. Title of Subgraph word wrap to be overlayed by elements (in VS Code Markdown Preview) 2. Tick marks to show up in all labels, in Github Profile README.md user interface #5217
Labels
Status: Triage
Needs to be verified, categorized, etc
Type: Bug / Error
Something isn't working or is incorrect
Description
I am currently working on a MermaidJS flow chart which features somewhat lengthy text labels.
The problem I was facing was that without using a word-wrap functionality, the flowchart elements were becoming quite horizontally long.
I found this solution:
https://stackoverflow.com/a/75978908
Which discusses setting up labels like this-- using text wrapped in backticks wrapped double quotes (e.g. "`text`")
e.g.
A-->B["`Example of a long text string which can be word-wrapped with tick marks and doublequotes`"]
However there are two problems:
Problem 1: Subgraph title visually overlapped by elements, in VS Code markdown preview
Example of the problem mentioned above the using wordwrapping on subchart title labels results in flowchart elements laying on top of the subgraph title label, in use case of: VS Code Markdown Preview
Notice: Word wrap works on main elements, but not in subgraph title's label due to an overlay problem
Problem 2: on Github profile page, backtick marks appear in flowchart element labels and wordwrap may or may not be working
On my github profile page (which is based on a README.md file), the "``" methodology results in the backticks showing up in the flowchart element labels-- which I do not prefer.
Example of backticks showing up flowchart element labels in use case of: Github profile use of MermaidJS :
Notice: Word wrap works, but the backticks are shown and wordwrap may or may not be working
Live Example:
User Interface (Scroll to bottom) of MermaidJS chart backticks issue: https://github.com/pmeaney/pmeaney
Code for the above live example: https://github.com/pmeaney/pmeaney/blob/main/README.md?plain=1#L64
Steps to reproduce
Code Sample
The text was updated successfully, but these errors were encountered: