MD Export Pro
approvedby alan
Fixes Mermaid diagram truncation in PDF export, and adds Python-powered Word export. - This plugin has not been manually reviewed by Obsidian staff.
MD Export Pro
An ultra-lightweight Obsidian plugin that fixes the annoying issue where wide Mermaid diagrams (like sequence diagrams) get horizontally truncated/cut off when using Obsidian's native "Export to PDF" feature.
How it works
When you use the Export to PDF (Mermaid Fix) command, this plugin temporarily injects a precise @media print CSS rule that forces all Mermaid SVG elements to scale responsively (max-width: 100%) and avoid page breaks, and then automatically invokes Obsidian's native, high-quality PDF export dialog.
This means you get the best of both worlds:
- Perfect Mermaid diagrams that fit within your A4 (or other) page size.
- The familiar, feature-rich native Obsidian PDF export dialog.
How to use
- Open any Markdown file containing wide Mermaid diagrams.
- Right-click anywhere in the file explorer on the file, or right click inside the editor.
- Select "Export to PDF (Mermaid Fix)".
- The native PDF export dialog will appear. Click Export and enjoy perfectly scaled diagrams!
Manual Installation
- Create a folder named
obsidian-pdf-mermaid-fixinside your vault's.obsidian/plugins/directory. - Download
main.jsandmanifest.jsonfrom the latest Release and place them in the folder. - Reload Obsidian and enable the plugin in Community Plugins.
For plugin developers
Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.