Bookify - Convert Markdown to PDF or EPUB
by @danielefavi
Convert Markdown files to styled PDF or EPUB ebook using md-bookify. Use when the user wants to generate a PDF document or EPUB ebook from markdown content o...
clawhub install bookifyπ About This Skill
name: bookify description: Convert Markdown files to styled PDF or EPUB ebook using md-bookify. Use when the user wants to generate a PDF document or EPUB ebook from markdown content or files. source: https://www.npmjs.com/package/md-bookify version: 2.2.1 argument-hint:
Convert Markdown to PDF or EPUB
Use the md-bookify npm package via npx to convert Markdown files to styled PDF documents or EPUB ebooks.
Interpreting Arguments
$ARGUMENTS contains a file path (ends in .md or .markdown), convert that file$ARGUMENTS includes pdf or epub, use that format (default: PDF)$ARGUMENTS is descriptive (e.g. "convert the README to elegant PDF"), parse the intentPDF Conversion
npx md-bookify@2.2.1 [options]
Options:
-o, --output β Output PDF file path (default: same name with .pdf extension)-t, --title β Document title (default: filename)--author β Author name-f, --format β Page format: A4 (default), Letter, Legal-s, --style β Style name or path to .css file (see Styles below)--landscape β Landscape orientation (good for wide tables or code)--margin-top β Top margin (e.g. 20mm)--margin-right β Right margin--margin-bottom β Bottom margin--margin-left β Left marginEPUB Conversion
npx md-bookify@2.2.1 epub [options]
Options:
-o, --output β Output EPUB file path (default: same name with .epub extension)-t, --title β Document title (default: filename)--author β Author name--language β Language code (default: en)--publisher β Publisher metadata--description β Book description metadata--cover β Path to cover image fileImportant: EPUB ignores --style, --format, --landscape, and --margin-* flags β those are PDF-only.
Built-in Styles (PDF only)
| Style | Description |
|-------|-------------|
| default | Clean, modern sans-serif styling |
| serif | Traditional book appearance with serif fonts |
| elegant | Refined typography with tasteful spacing |
| eink | Optimized for e-ink displays, high contrast |
| eink-serif | Serif variant optimized for e-ink readers |
Use with -s: npx md-bookify@2.2.1 file.md -s elegant
You can also pass a path to any .css file: npx md-bookify@2.2.1 file.md -s ./custom.css
Supported Markdown Features
$inline$ and $$block$$Error Recovery
npx puppeteer@24 browsers install chromeExamples
# Basic PDF
npx md-bookify@2.2.1 README.mdStyled PDF with author
npx md-bookify@2.2.1 report.md -s elegant --author "Jane Doe" -o output/report.pdfUS Letter format, landscape
npx md-bookify@2.2.1 data.md -f Letter --landscapeEPUB ebook with cover
npx md-bookify@2.2.1 novel.md epub --author "Author Name" --cover cover.jpgEPUB with metadata
npx md-bookify@2.2.1 docs.md epub -t "User Guide" --publisher "Acme Corp" --description "Complete user guide"
π‘ Examples
# Basic PDF
npx md-bookify@2.2.1 README.mdStyled PDF with author
npx md-bookify@2.2.1 report.md -s elegant --author "Jane Doe" -o output/report.pdfUS Letter format, landscape
npx md-bookify@2.2.1 data.md -f Letter --landscapeEPUB ebook with cover
npx md-bookify@2.2.1 novel.md epub --author "Author Name" --cover cover.jpgEPUB with metadata
npx md-bookify@2.2.1 docs.md epub -t "User Guide" --publisher "Acme Corp" --description "Complete user guide"