-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
can't self-pointing with an arrow to a same node in version 11.1.0 #5820
Comments
StateDiagram has same problem |
We can reproduce this and are working on a fix for it in the upcoming release. |
Workaround this issue that affects GitHub as of 2024-09-08: mermaid-js/mermaid#5820
Workaround this issue that affects GitHub as of 2024-09-08: mermaid-js/mermaid#5820
Workaround this issue that affects GitHub as of 2024-09-08: mermaid-js/mermaid#5820
@knsv huge thanks for the fix! i just wanna let you know that now the arrows towards the same node are much wider (i don't know if it was intentional). graph LR;
A((A))--test -->A((A))
B((B))-- another test-->B((B))
C((C))-- text-->C((C))
C((C))-- another text-->D((D))
|
Hi there @knsv, thanks for the fix as well! Now diagrams with self-references render, but I encounter similar issues as @FeddyLix17: the arrows for self-references are way off:
|
Description
From the version 11.1.0 up to v11.1.0+bfc4abe (the latest at the moment i'm writing) when you try to self pointing with an arrow to the same node it get the following error
Unable to render rich display
Cannot read properties of undefined (reading 'node')
For more information, see https://docs.github.com/get-started/writing-on-github/working-with-advanced-formatting/creating-diagrams#creating-mermaid-diagrams
using any version before 11.1.0 doesn't reproduce this behaviour
Steps to reproduce
reproduce the bug
normal behaviour
Screenshots
Code Sample
No response
Setup
No response
Suggested Solutions
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: