Plugin filter to create Mermaid diagrams from text (Mermaid format).
It uses Mermaid tool made by Knut Sveidqvist. Complete syntax is available at http://mermaid.js.org/.
This plugin is distributed under GNU GPL v3 license.
Add Mermaid format text between [mermaid]...[/mermaid]
Example:
[mermaid]
sequenceDiagram
Alice ->> Bob: Hello Bob, how are you?
Bob-->>John: How about you John?
Bob--x Alice: I am good thanks!
Bob-x John: I am good thanks!
Note right of John: Bob thinks a long<br/>long time, so long<br/>that the text does<br/>not fit on a row.
Bob-->Alice: Checking with John...
Alice->John: Yes... John, how are you?
[/mermaid]
sequenceDiagram
Alice ->> Bob: Hello Bob, how are you?
Bob-->>John: How about you John?
Bob--x Alice: I am good thanks!
Bob-x John: I am good thanks!
Note right of John: Bob thinks a long<br/>long time, so long<br/>that the text does<br/>not fit on a row.
Bob-->Alice: Checking with John...
Alice->John: Yes... John, how are you?
[mermaid]
pie title What Voldemort doesn't have?
"FRIENDS" : 2
"FAMILY" : 3
"NOSE" : 45
[/mermaid]
pie title What Voldemort doesn't have?
"FRIENDS" : 2
"FAMILY" : 3
"NOSE" : 45
Thanks to Erwan Gallenne and his DBconcept filter for the inspiration.