title_body: Format for ebook that contains code
upvoted_answer: Embedding code in EPUB can be accomplished with pure HTML and CSS. The &lt;code&gt; tag and monospace attribute will bring you most of the way. See https://github.com/oreillymedia/HTMLBook for a lot of detail.