qiaoborui299 downloadsRender Mermaid diagrams with beautiful-mermaid SVG output and theme variables.
An Obsidian plugin that renders Mermaid diagrams with beautiful-mermaid SVG output and Obsidian theme variables.
Inspired by Craft's Beautiful Mermaid gallery and powered by lukilabs/beautiful-mermaid.
|
Theme-aware diagrams |
XY bar charts |
|
Bar + line combinations |
Horizontal charts |
Use a mermaid code block:
```mermaid
graph LR
A[API emitEvent] --> B[Fanout exchange]
B --> C[Gateway session A]
B --> D[Gateway session B]
```
Aliases are supported:
mermaidmermaid-beautifulbeautiful-mermaidbmmdbun install
bun run build
Copy these files into:
<vault>/.obsidian/plugins/beautiful-mermaid-renderer/
Required files:
manifest.jsonmain.jsstyles.cssEnable Beautiful Mermaid Renderer from Obsidian settings.
Reading view and Live Preview are both supported. In Live Preview, move the cursor outside the code block to see the rendered diagram; use the hover Edit button to reveal the source again.
Inline diagrams fit to the editor width by default so the whole diagram is visible. Disable Fit diagrams to width in plugin settings to use readable-height scaling with horizontal scrolling.
The preview SVGs are generated locally from Mermaid source:
bun run assets
Manual install needs:
main.jsmanifest.jsonstyles.cssbun run dev