Mermaid diagram previewer for Visual Studio Code.
- Open a file containing Mermaid diagram
- Choose
Preview Mermaid Diagram
- Move cursor inside the diagram
The plugin detects mermaid diagrams in the following formats:
<div class="mermaid">
sequenceDiagram
A-->B: Works!
</div>
```mermaid sequenceDiagram A-->B: Works! ```
You can customize the appearence of the previewed diagrams by setting the mermaid configuration in the workspace settings:
{
"mermaid": {
"sequenceDiagram": {
"mirrorActors": false
}
}
}
All mermaid configuration options are supported.