Mermaid Diagrams

Create flowcharts, sequence diagrams, and more with Mermaid

jet-w
4min

Mermaid Diagrams

Create beautiful diagrams directly in Markdown using Mermaid.

Basic Syntax

Use a code block with mermaid language:

```mermaid
graph TD
    A[Start] --> B[End]
```

Flowchart

Basic Flow

🔄 正在渲染 Mermaid 图表...

Left to Right

🔄 正在渲染 Mermaid 图表...

Node Shapes

🔄 正在渲染 Mermaid 图表...

Sequence Diagram

🔄 正在渲染 Mermaid 图表...

Class Diagram

🔄 正在渲染 Mermaid 图表...

State Diagram

🔄 正在渲染 Mermaid 图表...

Gantt Chart

🔄 正在渲染 Mermaid 图表...

Pie Chart

🔄 正在渲染 Mermaid 图表...

Entity Relationship

🔄 正在渲染 Mermaid 图表...

Git Graph

🔄 正在渲染 Mermaid 图表...

Styling

Custom Colors

🔄 正在渲染 Mermaid 图表...

Tips

Best Practices
  1. Keep it simple - Complex diagrams become hard to read
  2. Use meaningful labels - Clear text improves understanding
  3. Choose the right type - Match diagram to your content
  4. Test rendering - Preview before publishing
Learn More

Full documentation: mermaid.js.org


Next: LaTeX Math for mathematical formulas.