xwikisas / application-diagram

Create various types of diagrams using draw.io
GNU Lesser General Public License v2.1
0 stars 5 forks source link

Mermaid import not working #228

Closed jeppevinkel closed 7 months ago

jeppevinkel commented 1 year ago

Steps to reproduce:

  1. Create a new diagram
  2. Insert Mermaid diagram via Arrange->Insert->Advanced->Mermaid
  3. Click insert

After those steps it shows an error saying Mermaid isn't defined. image

Expected results: A diagram generated from the mermaid input.

jeppevinkel commented 1 year ago

Seems this error shows up on first attempt and then the above error on consecutive attempts. MicrosoftTeams-image

snazare commented 1 year ago

Reproduced on XWiki cloud 14.4.7 Diagram Pro 1.17.3

image

AndreeaChi commented 8 months ago

The error still reproduces on Diagram Pro version 1.19.3, while trying to add the mermaid syntax: graph TD A(Coffee machine <br>not working) --> B{Machine has power?} B -->|No| H(Plug in and turn on) B -->|Yes| C{Out of beans or water?} -->|Yes| G(Refill beans and water) C -->|No| D{Filter warning?} -->|Yes| I(Replace or clean filter) D -->|No| F(Send for repair)

from https://www.drawio.com/blog/mermaid-diagrams > flowchart type

image
oanalavinia commented 7 months ago

Note that mermaid import was added in drawio version 12.7.0 and it never worked before in the Diagram Application.