epub-to-md

Convert EPUB ebooks to Markdown using the epub2md CLI.

1|Updated Jan 19, 2026
One-click install
npx skills add https://github.com/k7lim/skillmonger --skill epub-to-md
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: epub-to-md
Source: https://github.com/k7lim/skillmonger/tree/main/skills/epub-to-md
Command: npx skills add https://github.com/k7lim/skillmonger --skill epub-to-md

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires epub2md, node, npm, and includes scripts (resource) components.

What problem does it solve?

Converts EPUB ebooks to Markdown using the epub2md CLI, enabling editing, sharing, and archiving of book content in a portable format.

Core Features & Use Cases

  • Single-file and batch conversion: Process one EPUB or multiple EPUBs via wildcards.
  • Output control and options: Derive output directories from the EPUB name; supports --merge, --localize, and -M for spacing fixes.
  • Use Case: You need to publish a library of notes by converting a collection of EPUB manuals into Markdown for a documentation portal.

Quick Start

Install prerequisites: ensure Node.js 18+ and npm are available, then install epub2md globally and run the converter on your EPUB file, for example: epub2md "<path-to-epub>" --merge --localize -M.

Frequently Asked Questions about epub-to-md

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I convert EPUB files to Markdown using the command line?

You can convert EPUB files to Markdown by running the epub2md CLI with your file path, applying flags like --merge to combine chapters. This requires installing the epub2md package via npm.

Can I batch convert multiple EPUBs to Markdown at once?

Yes, batch conversion of multiple EPUBs to Markdown is supported using wildcard patterns in your command line input. This allows you to process an entire directory of ebooks simultaneously.

Do I need Node.js to convert EPUB documents to Markdown?

Yes, you need Node.js version 18 or higher and npm installed to use the epub2md package. These prerequisites are required to install the tool and execute the document conversion.

What is the best way to combine EPUB chapters into a single Markdown file?

The best way to merge EPUB chapters into a single Markdown file is by using the --merge flag when running the epub2md command. This consolidates all converted chapters into one output.

How do I fix spacing issues when converting EPUB to Markdown?

To fix spacing issues during EPUB to Markdown conversion, use the -M flag when executing the epub2md command. This option automatically corrects formatting and spacing anomalies in the output.

Does the EPUB to Markdown conversion localize images?

Yes, the EPUB to Markdown conversion can localize images by using the --localize flag. This extracts and saves images from the EPUB into your derived output directory structure.