Auto Beautiful Mermaid
approvedby rxdxxxx
Smart-routes Mermaid diagrams: beautiful-mermaid for its 6 supported types, Obsidian's built-in engine for everything else. - This plugin has not been manually reviewed by Obsidian staff.
↓ 138 downloadsUpdated 29d agoMIT
Auto Beautiful Mermaid
An Obsidian plugin that intelligently routes Mermaid diagram rendering:
- beautiful-mermaid renders the 6 diagram types it supports (flowchart, sequence, state, class, ER, XY chart) — giving you polished, theme-aware SVG output.
- Obsidian's built-in mermaid engine handles everything else (gantt, pie, mindmap, timeline, gitGraph, …) — preserving native interactivity and the full Mermaid type catalog.
Both Reading View and Live Preview are covered.
Features
- ✅ Beautiful output for supported diagram types via
beautiful-mermaid - ✅ Full Mermaid type coverage — no diagram ever falls through to an error box
- ✅ Per-block toolbar: switch between Beautiful / System / Both / Source modes
- ✅ Automatic dark/light theme adaptation
- ✅ Live Preview support (CodeMirror EditorExtension)
- ✅ Zero conflicts — completely takes over all
mermaidfences so no duplicate rendering
Supported Diagram Types (Beautiful mode)
| Type | Keyword |
|---|---|
| Flowchart | flowchart / graph |
| Sequence | sequenceDiagram |
| State | stateDiagram / stateDiagram-v2 |
| Class | classDiagram |
| ER | erDiagram |
| XY Chart | xychart-beta |
All other Mermaid types default to System mode (Obsidian's built-in engine).
Installation
Community Plugin Store (recommended)
- Open Obsidian Settings → Community Plugins → Browse
- Search for Auto Beautiful Mermaid
- Click Install, then Enable
Manual
- Download
main.js,manifest.json,styles.cssfrom the latest release - Copy them to
<vault>/.obsidian/plugins/auto-beautiful-mermaid/ - Reload Obsidian and enable the plugin in Settings → Community Plugins
Compatibility
- Minimum Obsidian version: 1.4.0
- Conflicts with
beautiful-mermaid-renderer— disable that plugin if both are installed
Development
npm install
npm run dev # watch mode
npm run build # production build
npm run test # unit tests
See DEVELOPMENT.md for architecture details and the double-render root cause analysis.
License
For plugin developers
Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.