Overview Version History Q & A Rating & Review
Mermaid Export Pro
This extension is free, the name is mainly to set it appart from older unmaintained alternatives.
Professional cross-platform Mermaid (from markdown .md
or Mermaid files .mmd
) diagram export extension for Visual Studio Code with comprehensive format support and workflow automation.
🎯 Smart Status Bar Integration
Real-time Diagram Count : Shows number of mermaid diagrams in current file
One-Click Export : Click status bar to export directly when configured
Visual Status Indicators : Different icons for CLI/web/setup states
Auto-hide : Only appears when viewing files with mermaid content
SVG : Vector graphics with perfect scalability
PNG : High-quality raster with transparency support
JPG/JPEG : Compressed images for web use
PDF : Document-ready format
WebP : Modern web format
🚀 Batch Operations
Folder Export : Process entire directory structures
Multi-diagram Support : Handle multiple mermaid blocks per markdown file
Progress Tracking : Visual feedback for large operations
Error Reporting : Detailed logs of successful/failed exports
⚡ Auto-Export on Save
File Watcher : Automatically export when files are saved
Configurable : Toggle on/off with workspace persistence
Custom Output : Configure export directory and naming
Smart Detection : Works with .mmd
files and markdown blocks
🎨 Enhanced Markdown Experience
CodeLens : Export buttons above mermaid code blocks
Rich Hover : Diagram info and export options on hover
Command Links : Direct export from tooltips
Type Detection : Identifies flowchart, sequence, class diagrams, etc.
CLI Export : High-quality rendering via Mermaid CLI (@mermaid-js/mermaid-cli)
Web Fallback : Browser-based export when CLI unavailable
Auto-detection : Automatically selects best available method
Cross-platform : Windows, macOS, and Linux support [UNTESTED: Need testers!!]
Requirements
Optional (Recommended)
Node.js : For CLI export strategy (best quality)
@mermaid-js/mermaid-cli : Automatically detected if globally installed
The extension works without these dependencies using the web export strategy.
Extension Settings
This extension contributes the following settings:
mermaidExportPro.defaultFormat
: Default export format (svg, png, pdf, webp, jpg, jpeg)
mermaidExportPro.theme
: Mermaid theme (default, dark, forest, neutral)
mermaidExportPro.outputDirectory
: Custom output directory (relative or absolute)
mermaidExportPro.autoExport
: Automatically export on file save
mermaidExportPro.exportStrategy
: Export strategy preference (cli, web, auto)
mermaidExportPro.width
: Default export width in pixels
mermaidExportPro.height
: Default export height in pixels
mermaidExportPro.backgroundColor
: Background color for exports
Quick Start
Open a file with mermaid diagrams (.mmd
or markdown with mermaid blocks)
Status bar will show diagram count - click to export
Or use Command Palette: Ctrl+Shift+P
→ "Mermaid Export Pro"
Commands
Export Current : Export active file diagrams
Batch Export : Export all diagrams in folder
Toggle Auto Export : Enable/disable auto-export on save
Setup Export Tools : Configure CLI tools
Right-click .mmd
files → Export Current
Right-click folders → Batch Export
CodeLens buttons above mermaid blocks in markdown
Release Notes
1.0.0
Complete implementation of professional mermaid export workflows:
Smart status bar with diagram counting and one-click export
Comprehensive batch export with recursive directory support
Auto-export on save with file watcher integration
Enhanced markdown support with CodeLens and hover providers
Extended format support including JPG/JPEG
Dual export strategy (CLI + Web) for maximum compatibility
Complete configuration system with workspace persistence
Cross-platform path handling and error management
Enjoy professional mermaid diagram workflows in VS Code!