title_body: Export .ePUB to text but somehow retain formatting
upvoted_answer: You could convert your epub book to a markdown/textile text file with Calibre. Make sure to select markdown/textile, before running the epub to txt conversion.
  (Preferences > Output options > Text output > Formatting > markdown/textile.)