Quote:
Originally Posted by Sylver
I am converting a txt file to epub: there are chapters in the txt file but I am not sure how to compile a linkable chapter list before the main content out of a pure text based txt file?
|
Check out the last tip under
Convert TXT documents in the user manual.
Quote:
Process using markdown
calibre also supports running TXT input though a transformation preprocessor known as markdown. Markdown allows for basic formatting to be added to TXT documents, such as bold, italics, section headings, tables, lists, a Table of Contents, etc. Marking chapter headings with a leading # and setting the chapter XPath detection expression to “//h:h1” is the easiest way to have a proper table of contents generated from a TXT document. You can learn more about the markdown syntax at daringfireball.
|