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

MD Export Pro

alanalan20 downloads

Fixes Mermaid diagram truncation in PDF export, and adds Python-powered Word export.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates10

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

  1. Open any Markdown file containing wide Mermaid diagrams.
  2. Right-click anywhere in the file explorer on the file, or right click inside the editor.
  3. Select "Export to PDF (Mermaid Fix)".
  4. The native PDF export dialog will appear. Click Export and enjoy perfectly scaled diagrams!

Manual Installation

  1. Create a folder named obsidian-pdf-mermaid-fix inside your vault's .obsidian/plugins/ directory.
  2. Download main.js and manifest.json from the latest Release and place them in the folder.
  3. Reload Obsidian and enable the plugin in Community Plugins.
HealthExcellent
ReviewCaution
About
Fix wide Mermaid diagram truncation when exporting to PDF by injecting a print CSS rule that makes Mermaid SVGs scale responsively and avoid page breaks. Use Obsidian's native PDF export dialog to produce properly scaled diagrams for A4 and other page sizes.
ExportCSSCharts
Details
Current version
1.1.0
Last updated
Last week
Created
3 weeks ago
Updates
10 releases
Downloads
20
Compatible with
Obsidian 1.4.0+
Platforms
Desktop only
Report bugRequest featureReport plugin
Author
alanalanalanqin888
GitHubalanqin888
  1. Community
  2. Plugins
  3. Export
  4. MD Export Pro

Related plugins

Style Settings

Adjust theme, plugin, and snippet CSS variables.

Admonition

Admonition block-styled content.

Tracker

Track occurrences and numbers in your notes.

Custom Frames

Turn web apps into panes using iframes with custom styling. Also comes with presets for Google Keep, Todoist and more.

CSS Editor

Edit CSS snippet files.

Lapel

Show the heading levels in the gutter of the editor.

Pandoc Plugin

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

Wechat Converter

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

Charts

Easily create interactive charts in your notes.

Slides Extended

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