EPUB to MDBook Converter
A fast and reliable tool to convert EPUB e-books to MDBook format.
Features
- 📖 Converts EPUB content (XHTML/HTML) to Markdown
- 📑 Automatically generates
SUMMARY.mdfrom the EPUB table of contents - 📝 Creates
book.tomlwith metadata (title, authors, description, language) - 🖼️ Preserves images and other resources
- 🔗 Fixes internal links to point to converted Markdown files
Installation
From crates.io
From source
Usage
Command Line
# Basic usage - creates a subdirectory named after the book
# Specify output directory
# Output directly to the directory without creating a subdirectory
As a Library
Add to your Cargo.toml:
[]
= "0.16"
Then use in your code:
use convert_epub_to_mdbook;
Output Structure
output/
└── book_name/
├── book.toml
└── src/
├── SUMMARY.md
├── chapter1.md
├── chapter2.md
└── images/
└── cover.png
License
This project is licensed under the MIT License