epub-to-markdown

Installation
SKILL.md

EPUB to Markdown Skill

Convert EPUB files to well-formatted single markdown files with images extracted.

Usage

python3 epub_to_markdown.py "<epub_path>" -o "<output_path>"

Features

  • Metadata extraction: title, author, language, publisher, publication date
  • TOC parsing: Extracts table of contents with hierarchy
  • HTML to Markdown: Converts chapter HTML using html2text
  • Heading preservation: Maintains H1-H6 hierarchy
  • Image extraction: Extracts images to _files_/ folder with book prefix
  • Single file output: All chapters in one markdown file
Related skills
Installs
1
GitHub Stars
1
First Seen
Apr 16, 2026