mermaid/docs/n00b-syntaxReference.md

29 lines
1.3 KiB
Markdown
Raw Normal View History

2020-07-20 20:34:05 +02:00
## Diagram syntax
If you are new to mermaid, read the [Getting Started](../getting-started/n00b-gettingStarted.md) and [Overview](../overview/n00b-overview.md) sections, to learn the basics of mermaid.
Video Tutorials can be found at the bottom of the Overview Section.
2020-07-20 20:34:05 +02:00
This section is a list of diagram types supported by mermaid. Below is a list of links to articles that explain the syntax of the diagrams or charts that can be called.
2020-07-20 20:39:23 +02:00
2020-09-17 22:38:44 +02:00
They also detail how diagrams can be defined, or described in the manner with which the diagram is to be rendered by the renderer.
2020-07-20 20:39:23 +02:00
### The benefits of text based diagramming are its speed and modifiability. mermaid allows for easy maintenance and modification of diagrams. This means your diagrams will always be up to date and closely follow your code and improve your documentation.
2020-07-20 20:34:05 +02:00
## mermaid tag:
These Diagram Definitions can be entered within a \<div class=mermaid> tag.
like so :
```html
2020-07-20 20:34:05 +02:00
<div class="mermaid">
graph LR
A --- B
B-->C[fa:fa-ban forbidden]
B-->D(fa:fa-spinner);
</div>
```
2020-07-20 20:39:23 +02:00
## mermaid Live Editor
2020-07-20 20:34:05 +02:00
These definitions can also be entered into the [mermaid live editor](https://mermaid-js.github.io/mermaid-live-editor), to render them immediately.
This would then offer
2019-11-28 12:53:33 +01:00
2019-11-28 12:57:55 +01:00
{% include list.liquid %}