Getting Started
This guide will help you quickly get started with Mermaid and Mermaid Viewer.
Installation
No software installation needed to use Mermaid Viewer! All you need to do is:
- Open your browser
- Visit Mermaid Viewer
That's it!
Create Your First Diagram
Let's start by creating a simple flowchart:
- In Mermaid Viewer, click "New Diagram"
- Choose "Flowchart" type
- Copy the following code into the editor:
Code:
mermaid
graph LR
A[Start] --> B[Step 1]
B --> C[Step 2]
C --> D[Done]
That's it! You've created your first Mermaid diagram.
Basic Syntax
Mermaid's basic syntax is very intuitive:
- Use
graph
to declare a flowchart - Use
-->
to create connections - Use
[]
for rectangular nodes - Use
{}
for diamond nodes - Use
()
for rounded nodes
For example:
Code:
mermaid
graph TD
A[Regular Node] --> B{Decision Node}
B --> |Yes| C(Rounded Node)
B --> |No| D((Circle Node))
Next Steps
Now that you understand the basics, you can:
- Explore different types of diagrams
- Learn how to use Mermaid Viewer
- Check out more examples and usage
Tips and Tricks
- Use the live preview feature to see your changes instantly
- Take advantage of the auto-complete functionality
- Use the share feature to collaborate with others
- Save your diagrams for later editing
Ready to dive deeper? Let's explore Mermaid Viewer's features!