Skip to content

Instantly share code, notes, and snippets.

@firstclown
Created January 4, 2014 17:31
Show Gist options
  • Save firstclown/8257787 to your computer and use it in GitHub Desktop.
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.
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