Markdown PDF has 4,355,262 recorded installs on VS Code Marketplace, an increase of 1.7% over the past 30 days, ranking #195 of 2,515 tracked listings.
Rating: 4.36 / 5 from 133 ratings
About Markdown PDF
Markdown PDF
<p> <img src="https://github.com/yzane/vscode-markdown-pdf/raw/HEAD/images/banner.png" alt="Markdown PDF" width="400"> </p>This VS Code extension converts Markdown files to pdf, html, png or jpeg files.
Table of Contents
<!-- TOC depthFrom:2 depthTo:2 updateOnSave:false -->- What's New
- Breaking Changes
- Features
- Chromium
- Usage
- Extension Settings
- Options
- FAQ
- Known Issues
- Change Log
- License
- Sponsor
- Special thanks
What's New
Highlights of new features and improvements since v2. See Breaking Changes for changes that may affect existing behavior.
2.2.0
- Improve error notifications with actionable hints and a Show Details button (details)
- Add detailed logging to the new Markdown PDF output channel (details)
- Add
Markdown PDF: Output Diagnosticscommand for bug reports (details)
2.1.0
- Add PlantUML fenced code block support (details)
- Add math rendering via KaTeX (details)
- Auto-download latest Chrome Stable (details)
Breaking Changes
Changes since v2 that may affect existing behavior. See the FAQ section for details.
2.2.0
- With
markdown-pdf.sanitize: "gfm"(default) or"gfm-allow-style", block-level<style>,<script>, and<iframe>elements are now removed together with their content, instead of being escaped and left as visible text in the output. A notification reports what was removed during an export.
2.1.0
- Security hardening: To mitigate XSS-like risk (#411), raw HTML in Markdown is now sanitized by default following the GFM Disallowed Raw HTML extension. Tags such as
<script>,<iframe>,<style>, andon*/javascript:attributes are stripped from Markdown body content. The behavior is controlled by the new markdown-pdf.sanitize setting.
2.0.0
- Heading IDs now follow GitHub-compatible VS Code slug generation. Existing internal anchors in your documents may change.
- Details: Why did my heading anchors change?
- Highlight.js upgraded from v9 to v11. Some highlight style names have been renamed or removed.
- Front matter parsing is now stricter. Some previously accepted formats may be rejected.
- Chromium is resolved from an installed Chrome/Edge browser first, or auto-downloaded on first use.
Features
Markdown PDF adds the following authoring features on top of the default Markdown renderer when converting to PDF, HTML, PNG, or JPEG.
List
| Category | Feature | Description | Example |
|---|---|---|---|
| Basic syntax extensions | Syntax highlighting | Code block highlighting via highlight.js | ```js |
| Emoji | Emoji shortcodes | :smile: | |
| Checkbox | GitHub-style task lists | - [ ] / - [x] | |
| Heading IDs | GitHub-compatible heading anchors | # Heading → #heading | |
| Content composition | Container | Admonition-like blocks | ::: warning |
| Include | Embed Markdown fragments | :[label](https://github.com/yzane/vscode-markdown-pdf/blob/HEAD/path.md) | |
| Diagrams & math | PlantUML | UML diagrams from code blocks | @startuml … @enduml |
| Mermaid | Diagrams from fenced code blocks | ```mermaid | |
| Math | LaTeX math via KaTeX | $E = mc^2$ |
Basic syntax extensions
Checkbox
Render - [ ] / - [x] task-list items as disabled checkboxes, mirroring GitHub's task list rendering. Useful for status reports and checklists that should stay visible in the exported output.
Markdown
- [ ] Task A
- [x] Task B
Preview

Heading IDs
Headings receive GitHub-compatible anchor IDs automatically, so internal links such as [Section](#section) resolve the same way they do on GitHub. ASCII headings are lowercased with spaces replaced by hyphens; non-ASCII headings keep their original characters.
| Heading | Generated ID |
|---|---|
# My Heading | #my-heading |
# API Reference | #api-reference |
# 日本語見出し | #日本語見出し |
See also: Why did my heading anchors change? in the FAQ.
Content composition
Container
Admonition-like blocks via markdown-it-container. The identifier after ::: becomes the block's CSS class, so you can style warnings, tips, and notes by pairing it with markdown-pdf.styles.
Markdown
::: warning
**Warning:** here be dragons
:::
```…
Description from the VS Code Marketplace listing.
- export
- markdown
- mermaid
- multi-root ready
- PlantUML
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Ratings over time
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Installs on a linear scale. Placement is projected from installs, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (50)Similar VS Code Marketplace Other plugins
All 20 Markdown PDF alternativesData source
Install counts, average rating, and rating counts come from the public Visual Studio Marketplace gallery API. Installs are cumulative and exclude updates.
Listing: https://marketplace.visualstudio.com/items?itemName=yzane.markdown-pdf. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.