knsv d92c682bbe Feature complete for first release
* added possibility to include numbers in ids
* added graph statement and possibility to set direction of graph from graph statement
* refactured the grammar somewhat
2014-11-15 21:28:26 +01:00
2014-11-13 19:51:05 +01:00
2014-11-15 21:28:26 +01:00
2014-11-13 19:53:31 +01:00
2014-11-13 19:53:31 +01:00
2014-11-15 21:28:26 +01:00
2014-11-15 21:28:26 +01:00
2014-11-11 08:12:03 +01:00
2014-11-13 19:51:05 +01:00
2014-11-13 19:51:05 +01:00
2014-11-02 00:52:32 +01:00
2014-11-13 19:51:05 +01:00
2014-11-15 21:28:26 +01:00

mermaid

Generation of diagram and flowchart 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 to the image

graph TD;
    A-->B;
    A-->C;
    B-->D;
    C-->D;

would render this lovely chart: €€€ IMG €€€

Format:

#Installation and usage

A graph example

graph LR
    A[Hard edge]-->|Link text|B(Round edge)
    B-->C{Decision}
    C-->D[Result 1]|Option 1
    C-->E[Result 2]|Option 2

#Syntax

Graph

This statement declares a new graph and the direction of the graph layout.

graph TD

Would declare a graph oriented from top to bottom.

graph LR

Would declare a graph oriented from left to right.

Nodes

A node (default)

id1

A node with text

id1[This is the text in the box]

A node with round edges

id1[This is the text in the box]

A node (rhombus)

id1{This is the text in the box}

Styling a node

A-->B
A---B
A---B|This is the text

Credits

Many thanks to the d3 and dagre-d3 projects that is used to graph layout and drawing.

Description
No description provided
Readme MIT 296 MiB
Languages
TypeScript 44.5%
JavaScript 41%
HTML 9.7%
Yacc 4.4%
Vue 0.2%
Other 0.1%