cheney230 downloadsEnhanced Mermaid diagram editor with adaptive canvas, smooth zoom/pan, split view, and fullscreen support.
An Obsidian plugin that turns every mermaid code block into an interactive canvas — zoom, pan, fullscreen, copy, export, and a built-in split editor. No more squinting at cramped diagrams.
Inline canvas — clean view

Hover to reveal controls

Fullscreen mode

Split editor — code left, live preview right


Ctrl/Cmd + scroll wheel to zoom toward cursor, drag to panMermaid Canvas command (or type / and search for it) to insert a block and open a live split-view editor| Action | How |
|---|---|
| Insert + edit | Mermaid Canvas command (Command Palette or / search) |
| Edit existing | Click the ✏️ edit button on any rendered mermaid block |
| Zoom | Ctrl/Cmd + scroll wheel (or two-finger pinch on trackpad) |
| Pan | Click and drag the diagram |
| Fullscreen | Hover → click Maximize button, Esc to exit |
| Fit to canvas | Hover → click Fit button |
| Copy code | Hover → click Copy button |
| Export PNG | Hover bottom-center → click Image button |
| Export SVG | Hover bottom-center → click Download button |
| Delete block | Hover → click Trash button (editing mode only) |
main.js, styles.css, and manifest.json from Releasesyour-vault/.obsidian/plugins/mermaid-canvas/git clone https://github.com/cheney12138/mermaid-canvas-plugin.git
cd mermaid-canvas-plugin
npm install
npm run build
# Then copy main.js, styles.css, manifest.json to your vault's plugins folder
MIT