ebook-convert
ebook-convert
TLDR
Convert an e-book into another format
$ ebook-convert [path/to/input_file] [output_file]
Convert Markdown or HTML to e-book with TOC, title and author
$ ebook-convert [path/to/input_file] [output_file] --level1-toc="//h:h1" --level2-toc="//h:h2" --level3-toc="//h:h3" --title=[title] --authors=[author]