mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-11 03:19:42 +02:00
34 lines
1.4 KiB
Markdown
34 lines
1.4 KiB
Markdown
## Diagram syntax
|
|
|
|
If you are new to mermaid, read the [Getting Started](n00b-gettingStarted.md) and [Overview](n00b-overview.md) sections, to learn the basics of mermaid.
|
|
Video Tutorials can be found at the bottom of the Overview Section.
|
|
|
|
Below is a list of diagram types supported by mermaid and how they can be defined.
|
|
|
|
## mermaid tag
|
|
These Diagram Definitions can be entered within a \<div class=mermaid> tag.
|
|
like so :
|
|
```html
|
|
<div class="mermaid">
|
|
graph LR
|
|
A --- B
|
|
B-->C[fa:fa-ban forbidden]
|
|
B-->D(fa:fa-spinner);
|
|
</div>
|
|
```
|
|
## Mermaid Live Editor
|
|
You can proofread or render and download your definitions in real-time with the [Mermaid Live Editor](https://mermaid-js.github.io/mermaid-live-editor).
|
|
This would then offer you the following choices to download the diagram:
|
|
|
|

|
|
|
|
**Note:** Copying the markdown will allow you to link to your unique diagram from anywhere online.
|
|
|
|
## Directives:
|
|
[Directives](./directives.md) gives a diagram author the capability to alter the appearance of a diagram before rendering, by changing some of the applied configurations and can alter the font style, color and other aesthetic aspects of the diagram.
|
|
|
|
## Theme Creation:
|
|
Mermaid allows [Customized Themes](./theming.md) for websites and even individual diagrams.This is done using directives and can be very helpful, not only for styling but for simplifying more complex diagrams.
|
|
|
|
|