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

Export Mermaid Diagrams

Ameer JamalAmeer Jamal754 downloads

Export rendered Mermaid diagrams as SVG or PNG — copy to clipboard or save to disk.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates6
image

An Obsidian plugin to copy or save rendered Mermaid diagrams as SVG or PNG.

Useful when you (or some magical AI) write Mermaid in notes and you need to paste the diagram somewhere that doesn’t render Mermaid.

Privacy

This plugin runs fully offline. Copy as SVG/PNG uses the system clipboard only to place the diagram you explicitly export — it does not read other clipboard contents or send data anywhere.

Real Examples

image
image

Features

  • Left-side export button on rendered diagrams
  • Right-click menu on rendered diagrams and Mermaid code blocks
  • Copy the original Mermaid source or save it as a renderable Markdown note
  • Copy as SVG / PNG
  • Save as SVG / PNG
  • Save every diagram in the active note to the vault as PNG, SVG, or Markdown
  • Smart filenames based on the note name and nearest heading
  • Readable light export mode (default) so dark Obsidian themes don’t produce hard-to-read images
  • Optional “as shown in Obsidian” theme-matched export
  • Configurable PNG scale (1×–4×)

Install (manual)

  1. Create a folder: <vault>/.obsidian/plugins/export-mermaid-diagrams/
  2. Copy main.js, manifest.json, and styles.css from the latest release into that folder
  3. Reload Obsidian → Settings → Community plugins → enable Export Mermaid Diagrams

Folder name must match the plugin id: export-mermaid-diagrams.

Develop

npm install
npm run dev

Symlink or work directly in .obsidian/plugins/export-mermaid-diagrams, then reload the plugin in Obsidian.

npm run build   # production build → main.js

Usage

  1. Render a ```mermaid block (Live Preview or Reading view)
  2. Click the copy button on the left of the diagram, or right-click the diagram
  3. Choose Copy/Save as SVG or PNG

Settings

Setting Default Description
Primary click action Show export menu What the diagram export button does on click
After primary action Perform action only When a direct export is selected, whether to also open the menu
Default save folder mermaid-diagram-exports Vault folder for Save to vault actions
Open location after save Off Desktop only. Reveals vault saves in finder or file explorer
Export appearance Readable light High-contrast light export, or match Obsidian theme
PNG scale 2× Resolution multiplier
PNG background White Used when appearance is “As shown”

Support

Report a problem · Request a feature

If this plugin helps you, you can buy me a coffee.

License

MIT © Ameer Jamal — free to use; please keep the copyright notice.

HealthExcellent
ReviewPassed
About
Export rendered Mermaid diagrams as SVG or PNG for pasting or saving outside Obsidian. Use the left-side export button or right-click menu to copy or save, choose readable-light or theme-matched appearance, and scale PNG exports up to 4×.
ExportImages
Details
Current version
1.0.5
Last updated
3 weeks ago
Created
2 months ago
Updates
6 releases
Downloads
754
Compatible with
Obsidian 1.5.0+
Platforms
Desktop, Mobile
License
MIT
Report bugRequest featureReport plugin
Sponsor
Buy Me a Coffee
Author
Ameer JamalAmeer Jamalameer-jamal
GitHubameer-jamal
  1. Community
  2. Plugins
  3. Export
  4. Export Mermaid Diagrams

Related plugins

Wechat Converter

将 Markdown 转换为微信公众号排版,并支持一键发送到微信公众号(支持自定义 CSS和公众号贴图)、飞书、小红书、知乎、微博、CSDN等20+平台。

Export Image plugin

Easily convert your article to image.

Export to HTML

Export your Markdown notes as HTML, directly in the clipboard or as a file.

Ink

Handwriting and drawing directly between paragraphs using a digital pen, stylus, or Apple pencil.

Image Captions

Add captions to images with inline Markdown and link support. The caption format is compatible with the Commonmark spec and other Markdown applications.

Slides Extended

Create markdown-based reveal.js presentations. Fork of Advanced Slides.

TTRPG Tools - Maps

A toolbox for interactive fantasy maps.

Featured Image

Automatically set a featured image property in your notes based on the first image.

Pretty Properties

Makes note properties look more fun: adds side image, banners, list property colors and allows to hide specific properties.

Imagine

A comprehensive image management plugin for managing, inserting, resizing, viewing, and batch processing images.