/install bookify
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
- If
$ARGUMENTScontains a file path (ends in.mdor.markdown), convert that file - If
$ARGUMENTSincludespdforepub, use that format (default: PDF) - If
$ARGUMENTSis descriptive (e.g. "convert the README to elegant PDF"), parse the intent - If no file is specified, use Glob to find markdown files and ask which to convert
PDF Conversion
npx [email protected] \x3Cinput.md> [options]
Options:
-o, --output \x3Cpath>— Output PDF file path (default: same name with .pdf extension)-t, --title \x3Ctitle>— Document title (default: filename)--author \x3Cname>— Author name-f, --format \x3Cformat>— Page format:A4(default),Letter,Legal-s, --style \x3Cname>— Style name or path to .css file (see Styles below)--landscape— Landscape orientation (good for wide tables or code)--margin-top \x3Cmargin>— Top margin (e.g.20mm)--margin-right \x3Cmargin>— Right margin--margin-bottom \x3Cmargin>— Bottom margin--margin-left \x3Cmargin>— Left margin
EPUB Conversion
npx [email protected] epub \x3Cinput.md> [options]
Options:
-o, --output \x3Cpath>— Output EPUB file path (default: same name with .epub extension)-t, --title \x3Ctitle>— Document title (default: filename)--author \x3Cname>— Author name--language \x3Ccode>— Language code (default:en)--publisher \x3Cname>— Publisher metadata--description \x3Ctext>— Book description metadata--cover \x3Cpath>— Path to cover image file
Important: 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 [email protected] file.md -s elegant
You can also pass a path to any .css file: npx [email protected] file.md -s ./custom.css
Supported Markdown Features
- GitHub Flavored Markdown (tables, task lists, strikethrough)
- Fenced code blocks with syntax highlighting (TypeScript, JavaScript, Python, Go, Rust, Java, Bash, JSON, CSS, HTML, YAML, SQL, Diff)
- KaTeX math:
$inline$and$$block$$ - Images with relative paths (resolved from source file directory)
Error Recovery
- Chromium not found: Run
npx puppeteer@24 browsers install chrome - File not found: Verify the path exists. Use Glob to search for markdown files if needed.
- Node version: Requires Node >= 20
Examples
# Basic PDF
npx [email protected] README.md
# Styled PDF with author
npx [email protected] report.md -s elegant --author "Jane Doe" -o output/report.pdf
# US Letter format, landscape
npx [email protected] data.md -f Letter --landscape
# EPUB ebook with cover
npx [email protected] novel.md epub --author "Author Name" --cover cover.jpg
# EPUB with metadata
npx [email protected] docs.md epub -t "User Guide" --publisher "Acme Corp" --description "Complete user guide"
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install bookify - After installation, invoke the skill by name or use
/bookify - Provide required inputs per the skill's parameter spec and get structured output
What is Bookify - Convert Markdown to PDF or EPUB?
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... It is an AI Agent Skill for Claude Code / OpenClaw, with 124 downloads so far.
How do I install Bookify - Convert Markdown to PDF or EPUB?
Run "/install bookify" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Bookify - Convert Markdown to PDF or EPUB free?
Yes, Bookify - Convert Markdown to PDF or EPUB is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Bookify - Convert Markdown to PDF or EPUB support?
Bookify - Convert Markdown to PDF or EPUB is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Bookify - Convert Markdown to PDF or EPUB?
It is built and maintained by Dan (@danielefavi); the current version is v1.0.1.