README file from
GithubMermaid Flow for Obsidian
Mermaid Flow is a visual WYSIWYG editor for Mermaid flowcharts directly inside Obsidian. Create, edit, and arrange diagrams by dragging nodes and drawing connections—no Mermaid syntax knowledge required.

✨ Key Features
- Visual Drag-and-Drop Editor: Move nodes and draw connections with your mouse.
- Syntax-Free Editing: Focus on your ideas while the plugin handles the Mermaid code.
- Persistent Layouts: Remembers node positions using specialized comments, so your manual adjustments are preserved.
- Embedded or Modal Mode: Work in a side-pane alongside your note or in a focused popup.
- Reading Mode Integration: Add "Edit" buttons directly to your rendered diagrams.
- Live Preview Support: Seamlessly edit diagrams while typing in Live Preview.
🚀 Getting Started
Installation
- Search for Mermaid Flow in the Obsidian Community Plugins browser.
- Click Install, then Enable.
How to Use
- Insert a New Diagram:
- Use the Ribbon icon (workflow icon).
- Or use the command:
Mermaid Flow: Insert visual Mermaid diagram.
- Edit an Existing Diagram:
- Click the "Edit" button that appears on top of any Mermaid block in Reading Mode or Live Preview.
- Or place your cursor inside a
mermaidcode block and use the command:Mermaid Flow: Edit Mermaid diagram visually.
- Saving:
- Changes are saved back to your note automatically if "Auto-save" is enabled in settings.
⚙️ Settings
- Open editor as: Choose between a centered Popup (Modal) or an Embedded Pane (Split).
- Default Direction: Set your preferred flowchart direction (Top-Bottom, Left-Right, etc.).
- Remember node positions: (Recommended) Saves manual layouts within hidden Mermaid comments.
🔒 Advanced syntax & safety
The editor focuses on flowchart structure. Advanced or unrecognized Mermaid syntax in an existing diagram (for example click, classDef, or linkStyle directives) is preserved verbatim when you edit and re-save, and is rendered by Obsidian's own Mermaid engine — Mermaid Flow never executes diagram code itself.
🤝 Contributing
We welcome contributions! Please see our Contribution Guide and Architecture Overview to get started.
📄 License
This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.