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 Jamal17 downloads

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

Add to Obsidian
  • Overview
  • Scorecard
  • Updates3
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.

Real Examples

image
image

Features

  • Left-side export button on rendered diagrams
  • Right-click menu on rendered diagrams and Mermaid code blocks
  • Copy as SVG / PNG
  • Save as SVG / PNG
  • 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
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

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.2
Last updated
2 days ago
Created
2 days ago
Updates
3 releases
Downloads
17
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.

Featured Image

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

PlantUML

Generate PlantUML diagrams.

TTRPG Tools - Maps

A toolbox for interactive fantasy maps.

Pandoc Plugin

Commands to export to Pandoc-supported formats like DOCX, ePub and PDF.

Pixel Perfect Image

Pixel perfect 100% image resizing, copy to clipboard, show image in Finder/Explorer, and much more.

Local Images Plus

A reincarnation of Local Images to download images in Markdown notes to local storage.