Mermaid diagrams support

Dea XWiki. Let me ask if you plan to support Mermaid diagramm. A very useful and simple tool for complex topics such as displaying charts. I believe this would be a very useful extension for many users of your system.

image

2 Likes

PS: Please use the “Help/Discuss” category for discussions/questions when you post. I’ve updated your post.

There’s no plan but it would be nice indeed. Maybe you could develop it?

We do support several diagrams already though. For ex:

FYI, I’ve created an issue for it at Loading...

i like XWiki more and more, thank you for you support ) UML and YAML its also that’s what i need. Mermaid will be very helpful too.

+1 for Mermaid diagrams! I have also upvoted the JIRA :slight_smile:

And I’ve proposed it as a GSOC at:

1 Like

I tried to develop a mermaid render macro and published it on github.But there are still some issue:

  • How to edit the source of diagram in WISIWYG editor and inplace editor?
  • How to implement a live editor?
  • How to display error message in two editor mode(WISIWYG and inplace)?

I very rarely use the WISIWYG for PlantUML, at least the built-in XWiki. I believe that for Mermaid this is a minor inconvenience compared to the ability to use Mermaid diagrams. Third-party LiveEditor will allow you to debug complex diagrams and perhaps later it will be possible to teach WISIWYG for make Mermaid too. In the meantime, even just supporting Mermaid will give me significant benefits of using XWiki.

Look, Kroki is better. Thx for Daniel Beland ( Loading...) for what prompted such a wonderful idea

https://kroki.io/

1 Like

OK, you can try to search mermaid on extension manager now.

1 Like

Very nice, i play with like a child. Let me elaborate, when i try use “sequenceDiagram” got error. What i do wrong?

image

for example:

{{mermaid}}
sequenceDiagram
    Alice->>Bob: Hello Bob, how are you ?
    Bob->>Alice: Fine, thank you. And you?
    create participant Carl
    Alice->>Carl: Hi Carl!
    create actor D as Donald
    Carl->>D: Hi!
    destroy Carl
    Alice-xCarl: We are too many
    destroy Bob
    Bob->>Alice: I agree
{{/mermaid}}

I opened an issue for mermaid:

Finally, found the conflict and fixed it.
V1.1 should work.

1 Like