Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

Mermaid Canvas

cheneycheney230 downloads

Enhanced Mermaid diagram editor with adaptive canvas, smooth zoom/pan, split view, and fullscreen support.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates3

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.

Preview

Inline canvas — clean view

Mermaid Canvas

Hover to reveal controls

Controls on hover

Fullscreen mode

Fullscreen

Split editor — code left, live preview right

Split editor

Split editor detail

Features

  • Adaptive canvas — SVG renders at natural size, fills available width, no hardcoded constraints
  • Smooth zoom & pan — Ctrl/Cmd + scroll wheel to zoom toward cursor, drag to pan
  • Control bar — hover to reveal Zoom In / Zoom Out / Fullscreen / Fit / Copy / Delete
  • Export bar — hover bottom-center to export as PNG or SVG
  • Fullscreen mode — expand any diagram to fill the viewport, Esc to exit
  • Fit to canvas — one click to auto-scale the diagram to fit the available space
  • Copy code — copy the raw mermaid source to clipboard
  • Export PNG / SVG — download the diagram directly from the canvas
  • Delete block — remove the entire code block with one click (available in editing mode only)
  • Split editor — use the Mermaid Canvas command (or type / and search for it) to insert a block and open a live split-view editor
  • Edit interception — click Obsidian's native edit button on any mermaid block to open the split editor pre-loaded with the correct code
  • Auto-refresh — saving in the split editor immediately updates the reading view
  • Error resilience — invalid or empty blocks are gracefully skipped

Usage

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)

Installation

Manual

  1. Download the latest main.js, styles.css, and manifest.json from Releases
  2. Copy them into your-vault/.obsidian/plugins/mermaid-canvas/
  3. Reload Obsidian and enable the plugin in Settings → Community Plugins

From Source

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

Settings

  • Zoom sensitivity (1–10) — how fast the scroll wheel zooms

License

MIT

HealthExcellent
ReviewCaution
About
Turn every mermaid code block into an interactive, resizable SVG canvas with smooth zoom, pan, fullscreen, copy-source, and delete controls. Open a built-in split editor for live code/preview editing and skip invalid or empty blocks without noisy errors.
CanvasVisualization
Details
Current version
0.1.3
Last updated
Last month
Created
Last month
Updates
3 releases
Downloads
230
Compatible with
Obsidian 1.5.0+
Platforms
Desktop, Mobile
License
MIT
Report bugRequest featureReport plugin
Author
cheneycheneycheney12138
GitHubcheney12138
  1. Community
  2. Plugins
  3. Canvas
  4. Mermaid Canvas

Related plugins

Advanced Canvas

Supercharge your canvas experience. Create presentations, flowcharts and more.

Canvas Mindmap

Make your canvas work like a mindmap.

Excalidraw

Visual PKM powerhouse. Create and edit Excalidraw drawings.

Breadcrumbs

Visualise the hierarchy of your vault using a breadcrumb trail or matrix view.

Maps

Adds a map layout to bases so you can display notes as an interactive map view.

Mermaid Tools

Improved Mermaid.js experience: visual toolbar with common elements and more.

ExcaliBrain

An interactive, structured mind-map of your Obsidian vault.

Persistent Graph

Save and restore the positions of nodes on your graph.

Strange New Worlds

Reveal networked thought and the strange new worlds created by your vault.

Charts

Easily create interactive charts in your notes.