Convert any Markdown file to a production-quality PDF or DOCX directly from VS Code — with full support for Mermaid diagrams, KaTeX math, syntax-highlighted code blocks, tables of contents, and a live preview panel.
Features
One-click export — Convert the open .md file to PDF or DOCX from the editor title bar or right-click menu
Live preview — Instant rendered preview beside your editor as you type
Mermaid diagrams — Flowcharts, sequence diagrams, Gantt charts, and more
KaTeX math — Inline $...$ and display $$...$$ equations rendered correctly
Syntax highlighting — Fenced code blocks highlighted for 180+ languages
Table of Contents — Auto-generated ToC with one option toggle
Auto page breaks — Optionally insert page breaks before every H1
DOCX styling — Custom .lua filters for polished Word output
Quick Start
Open any .md file
Click the InkDown preview icon (👁) in the editor title bar to open the live preview
Click the PDF icon (📄) to export, or use the command palette:
InkDown: Convert to PDF
InkDown: Convert to DOCX
InkDown: Convert with Options…
Requirements
InkDown server running locally (included in the InkDown project)
Start it with InkDown: Start Server from the command palette, or run node server.js in the InkDown directory