export-pdf
Installation
SKILL.md
Export Markdown → PDF
Converts one or more Markdown files into self-contained PDFs (images inlined, fonts embedded) using system pandoc + weasyprint, with a Chinese-friendly stylesheet.
<SKILL_DIR> is this skill's directory. <PROJECT_DIR> is the directory
containing the markdown being exported.
Workflow
- Run
bash <SKILL_DIR>/scripts/check-env.sh. If it FAILs, fix per the FAIL message (see "Environment bootstrap" below) and re-run until green. - Export:
- Single file:
bash <SKILL_DIR>/scripts/export-pdf.sh <PROJECT_DIR>/input.md - Whole directory:
bash <SKILL_DIR>/scripts/export-pdf.sh <PROJECT_DIR>(every top-level*.md; pass--recursiveto include subdirectories)
- Single file:
- Report output path(s), size, and page count to the user.