Closed richelbilderbeek closed 1 month ago
We've noticed the same issues on github.com.
The following does work in the live editor though:
flowchart TD
A("`Let me think
a bit longer an`")
B("`Let me think
a bit longer and`")
and in GitHub too
flowchart TD
A("`Let me think
a bit longer an`")
B("`Let me think
a bit longer and`")
@richelbilderbeek Interestingly, your code works fine in Microsoft's Edge browser
Interesting! Let's add a screenshot from Firefox then:
Indeed, the code by @akulmehta works in the live editor too, until one adds more characters again:
flowchart TD
A("`Let me think
a bit longer an`")
B("`Let me think
a bit longer and`")
C("`Let me think
a bit longer and looooonger`")
D("`Let me think
a bit longer and loooooonger`")
With screenshot from Firefox:
Hmmm it seems to be working now on Firefox too
Also, you can split the text into multiple lines if you are worried it will stop working for any reason:
flowchart TD
A("`Let me think
a bit longer an`")
B("`Let me think
a bit longer and
loooooonger`")
flowchart TD
A("`Let me think
a bit longer an`")
B("`Let me think
a bit longer and
loooooonger`")
I can confirm too this works now under Firefox.
Thanks mermaid devs!
I'll close this Issue. Again: thanks to the mermaid devs!
Describe the bug
Longer node texts are not displayed in live editors and texts
To Reproduce
Link to Live Editor: here
Here is the mermaid code for two nodes with texts:
Here is how it looks [edit: and this may look correctly on Edge, thanks @akulmehta for pointing this out. Below is a screenshot from Firefox]:
[edit: as it depends on the browser, I add a screenshot here below too. Thanks @akulmehta]
Note that one of the nodes does not display any text. That is the bug.
Expected behavior
I expect the texts of a node to be rendered
Screenshots
Desktop (please complete the following information):
Additional context
None