Skip to main content
All CollectionsAuthor HelpMarkdown and Markua
Do I put all the posts I want into one file can call that chapter1.txt? Do I have to create the Book.txt file in the order I want them to appear?
Do I put all the posts I want into one file can call that chapter1.txt? Do I have to create the Book.txt file in the order I want them to appear?
Len Epp avatar
Written by Len Epp
Updated over a week ago

The Book.txt file just puts the files in order. (You could write an entire Leanpub book in one file, and then Book.txt would just list that file name.) The content of the files determines the chapters, sections, etc. If you type

# Title at the beginning of a line

it becomes an H1 which is a chapter. Everything after that will be in that chapter until the next

# Title at the beginning of a line

which will start the next chapter.

Did this answer your question?