Auto Beautiful Mermaid

approved

by 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 mermaid fences so no duplicate rendering

Supported Diagram Types (Beautiful mode)

TypeKeyword
Flowchartflowchart / graph
SequencesequenceDiagram
StatestateDiagram / stateDiagram-v2
ClassclassDiagram
ERerDiagram
XY Chartxychart-beta

All other Mermaid types default to System mode (Obsidian's built-in engine).

Installation

Community Plugin Store (recommended)

  1. Open Obsidian Settings → Community Plugins → Browse
  2. Search for Auto Beautiful Mermaid
  3. Click Install, then Enable

Manual

  1. Download main.js, manifest.json, styles.css from the latest release
  2. Copy them to <vault>/.obsidian/plugins/auto-beautiful-mermaid/
  3. 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

MIT

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.