Skip to content

SkudarTV/moodle-filter_mermaid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Plugin Filter Mermaid

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.

Use:

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?
Loading
[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
Loading

Attribution:

Thanks to Erwan Gallenne and his DBconcept filter for the inspiration.

About

Moodle filter plugin for Mermaid

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors