一键导入
md2pdf
// Convert a Markdown file to PDF with GitHub-style formatting using the md2pdf tool.
// Convert a Markdown file to PDF with GitHub-style formatting using the md2pdf tool.
Detailed technical walkthrough covering architecture, test coverage, product tour, and key design decisions.
Generate a hands-on browser walkthrough of a PR's user-facing changes to exercise before review; --publish posts the final version to the PR for QA.
Quick 2-minute status update on current phase, completed work, blockers, and health check.
Pre-PR advisory check for deviations from the project spec. Read-only analysis.
Audit and update a project README, or bootstrap a new one. Detects tech stack, versions, and services.
Manage Todoist tasks, projects, labels, comments, and more via the td CLI
| name | md2pdf |
| description | Convert a Markdown file to PDF with GitHub-style formatting using the md2pdf tool. |
| argument-hint | [file.md] |
Convert Markdown files to PDF with GitHub-style formatting using the md2pdf tool.
$ARGUMENTS: File paths or glob patterns to convert (e.g., docs/guide.md, docs/*.md)-o FILE: Custom output path (only valid with a single input file)Determine input files:
$ARGUMENTS are provided, use them as the file pathsRun the conversion: Execute md2pdf with the specified files
Report results: Confirm which PDFs were generated
The md2pdf tool uses pandoc + weasyprint with GitHub-style CSS. The CSS and script live in dotfiles (~/dotfiles/bin/.local/bin/). The MD2PDF_CSS environment variable can override the default CSS path.
# Convert a single file
/md2pdf docs/guide.md
# Convert multiple files with a glob
/md2pdf docs/qa-handoffs/qa-guide-*.md
# Convert with a custom output name
/md2pdf -o custom-name.pdf docs/guide.md