
* Configuration are picked up from the mermaid object and is not passed as arguments. Same handling for all diagram types, sequenceDiagrams were handled in a different way before this commit. When init is called with: * 0 arguments - all mermaid divs are processed * 1 argument - this is interpreted as a definition of what nodes to process * 2 arguments - for (some) backwards compatability the second argument is interpreted as the definition of nodes to process. The first argument (prrobably a sequence config is ignored) A definition of nodes to process can be * a css selector for what elements to be processed * a list of nodes as in the result of a command like the one below ``` document.querySelectorAll('.tbProcessed'); ```
mermaid

Generation of diagrams and flowcharts from text in a similar manner as markdown.
Ever wanted to simplify documentation and avoid heavy tools like Visio when explaining your code?
This is why mermaid was born, a simple markdown-like script language for generating charts from text via javascript.
The code below would render the following image
Further reading
Credits
Many thanks to the d3 and dagre-d3 projects for providing the graphical layout and drawing libraries! Thanks also to the js-sequence-diagram project for usage of the grammar for the sequence diagrams. Thanks to Jessica Peter for inspiration and starting point for gantt rendering.
Mermaid was created by Knut Sveidqvist for easier documentation.
Knut has not done all work by him self, here is the full list of the projects contributors.