qmetrics.net

Vscode Markdown PDF

Markdown to PDF and image export for VS Code

Vscode Markdown PDF screenshot

A Visual Studio Code extension that exports Markdown files to PDF, HTML, PNG, or JPEG with diagrams, math, and GitHub-style extras.

Overview

Markdown PDF is a Visual Studio Code extension that converts Markdown documents into PDF, HTML, PNG, or JPEG files without leaving the editor. It extends the default Markdown rendering with features aimed at richer exports, such as task lists, heading anchors, include files, admonition-style containers, syntax highlighting, emoji, PlantUML, Mermaid, and KaTeX math.

Exports rely on a Chromium-based browser. The extension tries a configured executable path first, then installed Google Chrome, Microsoft Edge, or Chromium on the system, and can download a managed Chromium on first use unless auto-download is turned off. PDF output supports headers, footers, margins, orientation, and related print options; image output supports quality and clipping settings.

You trigger conversion from the command palette, the editor context menu, or optional convert-on-save. Settings control output directory, stylesheets, sanitization of raw HTML, highlight.js themes, and paths for PlantUML and Mermaid servers. A diagnostics command helps collect environment details when exports fail.

Behavior changes in recent major versions include stricter front matter parsing, updated heading slug rules compatible with GitHub-style anchors, and default HTML sanitization modes that strip some raw HTML tags from exported content.

Key features

  • Export to PDF, HTML, PNG, JPEG
  • PlantUML and Mermaid diagrams
  • KaTeX math rendering
  • GitHub-style task lists and heading IDs
  • Markdown include fragments
  • Syntax highlighting via highlight.js
  • Chromium-based rendering pipeline
  • Convert on save option

Use cases

  • Turn READMEs into PDF handouts
  • Export docs with diagrams and math
  • Batch-save Markdown as images
  • Share styled HTML from notes

Tags

Similar software

Pandoc

Universal command-line markup converter

Pandoc converts documents between many markup, office, wiki, bibliography, and slide formats. A Haskell library powers the standalone pandoc CLI and custom Lua readers or writers.

★ 47.1k⟳ todayGPL-2.0

Quarkdown

Markdown-based typesetting for documents and sites

Quarkdown compiles extended Markdown into books, papers, slides, wikis, and static sites. One project can target HTML, PDF, Markdown, or plain text.

★ 16.4k⟳ yesterdayGPL-3.0

Quarto Cli

Open-source scientific and technical publishing on Pandoc

Quarto is a publishing system built on Pandoc. Authors write Markdown and render documents, websites, books, and slides with executable code in several languages.

★ 6.2k⟳ yesterdayMIT

Asciidoctor

AsciiDoc text processor and multi-format publishing toolchain

Asciidoctor parses AsciiDoc into a document model and converts it to HTML, DocBook, man pages, PDF, EPUB, and other outputs. It runs as a Ruby gem with a command-line interface.

★ 5.2k⟳ 5 days agoMIT

Changes.Page

Changelog and roadmap platform for teams and pipelines

Hosts changelogs and public roadmaps with a web editor, or publishes updates through a CLI, API, and integrations.

★ 284⟳ 3 months agoAGPL-3.0

Mermaid

Text-defined diagrams from Markdown-like syntax

Mermaid turns plain-text diagram definitions into flowcharts, sequence charts, Gantt charts, and many other diagram types. It renders in browsers, documentation tools, and GitHub Markdown.

★ 91.3k⟳ 5 days agoMIT