Created
January 4, 2014 17:31
-
-
Save firstclown/8257787 to your computer and use it in GitHub Desktop.
Take a markdown file in a blown out ePub and generate a .mobi and .epub ebook from it. ebook-convert is a Calibre command line app.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function generate_book | |
multimarkdown $argv[1].md -o story.html | |
kindlegen assembly.opf -o $argv[1].mobi | |
ebook-convert $argv[1].mobi $argv[1].epub --page-breaks-before=/ | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment