Each Book in Multiple Formats

When preparing books for publication, the idea floats on the horizon that one day this will have to be converted to EPUB and MOBI too.

Sure, it feels like sorting arrays by hand. And let’s not think about the messy HTML and awful typography that comes out of these “Export as…” menus.

It turns out that multiple formats isn’t so hard if you plan for it from day zero:

$ gem install prophecy

There. Now it feels like array.sort!