Installation
This guide walks you through installing the Markdown PDF extension for Zed.
Prerequisites
Before installing, ensure you have:
- Zed Editor — Download from zed.dev
- Node.js 18+ — Required for the MCP server
- Rust with WASM target — Only for dev extension installation
# Check Node.js version
node --version # Must be ≥ 18
# Add Rust WASM target (for dev extension only)
rustup target add wasm32-wasip1Installation Methods
From Zed Extensions (Recommended)
- Open Zed
- Open the command palette (
Cmd+Shift+P/Ctrl+Shift+P) - Search for Extensions: Install Extension
- Search for
markdown-pdf - Click Install
As a Dev Extension
For development or to use the latest unreleased features:
Clone the repository:
bashgit clone https://github.com/matinfo/zed-markdown-pdf.gitOpen Zed
Open the command palette (
Cmd+Shift+P/Ctrl+Shift+P)Run zed: install dev extension
Select the
zed-markdown-pdffolder
Zed will compile and install the extension automatically.
Enable the Context Server
After installation, enable the context server:
- Open Zed Settings (
Cmd+,/Ctrl+,) - Navigate to Agent → Context Servers
- Find markdown-pdf and enable it
Or add to your settings.json:
{
"context_servers": {
"markdown-pdf": {
"enabled": true
}
}
}Automatic Setup
On first use, the extension automatically:
- Downloads the MCP server from GitHub releases
- Installs npm dependencies (~30 seconds)
- Downloads Chromium (~150 MB, ~2 minutes)
You'll see progress messages:
Installing npm dependencies (first run)…
Chromium not found, installing automatically…
Chromium installed successfully.This happens once. Subsequent exports are instant.
Manual Chromium Installation
If automatic installation fails, install Chromium manually:
cd ~/Library/Application\ Support/Zed/extensions/work/markdown-pdf/server
npm install
node node_modules/playwright-core/cli.js install chromiumcd ~/.local/share/zed/extensions/work/markdown-pdf/server
npm install
node node_modules/playwright-core/cli.js install chromiumcd $env:APPDATA\Zed\extensions\work\markdown-pdf\server
npm install
node node_modules\playwright-core\cli.js install chromiumVerify Installation
To verify everything is working:
- Open any Markdown file in Zed
- Open the assistant panel
- Ask:
Run doctor_markdown_pdf
You should see output like:
{
"browser": {
"available": true,
"backend": "Chromium (Playwright)",
"version": "147.0.7727.15"
}
}Troubleshooting
Extension fails to build
Ensure Rust and the WASM target are installed:
rustup target add wasm32-wasip1Context server doesn't start
- Confirm
markdown-pdfis enabled in Agent → Context Servers - Restart Zed
- Check Zed logs: Help → View Logs
- Check debug log:
/tmp/zed-markdown-pdf-debug.log
Node.js not found
Ensure Node.js is in your PATH:
which node # Should return a path
node --version # Should be ≥ 18Next Steps
- First Export — Create your first PDF
- Header & Footer — Add professional headers and footers
- Global Settings — Configure default options
