codeDown is a simple yet powerful CLI tool that converts Markdown (.md) files into beautiful themed PDFs — complete with syntax-highlighted code blocks.
Built for developers who love clean documentation, readable code snippets, and automated workflows.
- Syntax Highlighting for code blocks
- Selectable Themes – interactive picker or CLI flag (
light,dark) - Watch Mode – auto-regenerate PDF on file save
- Self-Update – update from the CLI (
code-down update) - Configurable – set a default theme via
code-down config set-theme - Fast & Lightweight – converts Markdown to PDF in seconds
pip install code-down-
Download the latest release Visit the Releases Page and download the latest Linux binary.
-
Make it executable and move to PATH
chmod +x code-down sudo mv code-down /usr/local/bin/
Convert a Markdown file into a themed PDF:
code-down input.md output.pdf -s darkAutomatically rebuild the PDF when the Markdown file changes:
code-down -w input.md| Flag | Description | Default |
|---|---|---|
-o, --output |
Output PDF file path | Same as input with .pdf extension |
-s, --style |
Theme style (e.g. light, dark) |
Config default or dark |
-w, --watch |
Watch file and rebuild PDF on changes | |
-v, --version |
Print version and exit |
| Command | Description |
|---|---|
code-down themes |
Pick a theme interactively (sets as default) |
code-down config show |
Show current configuration |
code-down config set-theme |
Set the default theme (interactive or by name) |
code-down update |
Update codeDown to the latest version |
Quick test file:
code-down examples/example.mdConvert README.md to README.pdf using the default theme:
code-down README.mdConvert with a dark theme and custom output name:
code-down README.md -o README_dark.pdf -s darkWatch a file and rebuild on every save:
code-down -w notes.md -s lightPick a theme interactively:
code-down themes- Ensure your Markdown files are UTF-8 encoded for best results.
- Supports syntax highlighting for most major programming languages.
- Works completely offline — no internet connection required (except for
update).