You've probably figured out a solution by now, but one possible solution is to first annotate your text file with Markdown. This may be as simple as putting a single "#" before your title (to place it in an h1 tag), and a "##" before each chapter to put them in h2 tags.
|