Ameer Jamal754 downloadsExport rendered Mermaid diagrams as SVG or PNG — copy to clipboard or save to disk.
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.
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.
<vault>/.obsidian/plugins/export-mermaid-diagrams/main.js, manifest.json, and styles.css from the latest release into that folderFolder name must match the plugin id:
export-mermaid-diagrams.
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
```mermaid block (Live Preview or Reading view)| 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” |
Report a problem · Request a feature
If this plugin helps you, you can buy me a coffee.
MIT © Ameer Jamal — free to use; please keep the copyright notice.