Feature request: Mermaid support

Sometimes it can be easier to lay the groundwork for discussion or illustrate problems/solutions using diagrams instead of words and sentences.

Discourse has an official theme component that adds support for Mermaid, which is one of the most common text-based diagramming tools.

Would it be possible to add this feature to Ziggit?


flowchart TD
    A[Christmas] -->|Get money| B(Go shopping)
    B --> C{Let me think}
    C -->|One| D[Laptop]
    C -->|Two| E[iPhone]
    C -->|Three| F[fa:fa-car Car]
sequenceDiagram
    Alice->>+John: Hello John, how are you?
    Alice->>+John: John, can you hear me?
    John-->>-Alice: Hi Alice, I can hear you!
    John-->>-Alice: I feel great!
19 Likes

Interesting, I’ll look into it when I get some time.

7 Likes

Graphviz DOT support may also be an option. It seems like plugin is avalible as well https://www.discourse.org/plugins/graphviz

1 Like

I tried to get the Mermaid plugin, but it failed to install correctly. I have enabled the graphviz plugin.

a a b b a--b c c a--c d d a--d e e a--e g g a--g b--c b--d b--e b--g c--d c--e c--g d--e d--g e--g
6 Likes