Markdown to EPUB
An EPUB 3 book with one chapter per # heading, an automatic table of contents, and its fonts inside.
How it works
- Write or paste Markdown in the studio, or send it from a terminal or your agent.
- The md2 engine reads the document once and detects each paragraph's direction.
- A EPUB e-book file is built and downloads right away.
When to use it
- Publish a book or guide for e-readers
- Send a long report to your Kindle
- Archive documentation in an open format
Right-to-left Arabic
Arabic books are declared right to left (dir=rtl, page-progression-direction=rtl), so pages turn the right way.
Try it now
curl
curl -X POST https://md2.dev/v1/convert \
-H "Content-Type: application/json" \
-d '{"markdown":"# Report\n\nHello from md2","format":"epub"}' \
-o document.epub MCP tool
{
"tool": "convert",
"arguments": {
"markdown": "# Report\n\nHello from md2",
"format": "epub"
}
} Common questions
- Does it work with Kindle?
- Send the EPUB with Send to Kindle and Amazon converts it.
- How does math look?
- As native MathML, rendered by the reader without images.
- Are images included?
- Inline data: images are packed in; remote images become links with a warning for now.