Preflight Checklist
Description
Mermaid entity-relationship diagrams with self-links are always inserted as an Image
Reproduction
Steps to reproduce the behaviour:
- File > New
- Blank Diagram
- Arrange > Insert > Mermaid...
- Select "Diagram" in the drop down
Paste one of the following:
Minimal example that triggers the bug:
erDiagram
D["Draw.io"]
P["Pen and paper"]
D ||--|| D : "The best drawing tool since"
Note that this is inserted as a Image (you cannot edit / drag components)
Minimal correction (D->P)
This is the same as the above but the link now goes D-->P, not D-->D (self-link)
erDiagram
D["Draw.io"]
P["Pen and paper"]
D ||--|| P : "The best drawing tool since"
Note that this is inserted as a Diagram (you can select / edit / move the compoents)
Expected behaviour
I would expect the diagram to be drawn exactly as it is
But inserted as a Diagram (not an Image) so that the components are editable / can be dragged / lines moved.
Screenshots
Inline above
draw.io version
v29.7.9
Desktop:
- OS: Mac OS Tahoe 26.4.1
- Browser: Chrome
- Browser Version: 147.0.7727.102 (Official Build) (arm64)
I tested the problem in incognito/private mode with all browser extensions switched off, write "yes" below:
yes
Preflight Checklist
Description
Mermaid entity-relationship diagrams with self-links are always inserted as an Image
Reproduction
Steps to reproduce the behaviour:
Paste one of the following:
Minimal example that triggers the bug:
Note that this is inserted as a Image (you cannot edit / drag components)
Minimal correction (D->P)
This is the same as the above but the link now goes D-->P, not D-->D (self-link)
Note that this is inserted as a Diagram (you can select / edit / move the compoents)
Expected behaviour
I would expect the diagram to be drawn exactly as it is
But inserted as a Diagram (not an Image) so that the components are editable / can be dragged / lines moved.
Screenshots
Inline above
draw.io version
v29.7.9
Desktop:
I tested the problem in incognito/private mode with all browser extensions switched off, write "yes" below:
yes