All Collections
Author Help
Markdown and Markua
Creating a Part in a Leanpub book
Creating a Part in a Leanpub book

Keywords: part, parts, Markua, how, section

Leanpub Support avatar
Written by Leanpub Support
Updated over a week ago
Creating a Part in a Leanpub book

When you're writing a Leanpub book in Markua, you can "Parts".

Related Article: What is Markua?

TL;DR Adding a Part to a Book

To create a Part, you add a directive in curly braces { } above the Part name.

So, if you wanted a Part named "Part One", you would type this in your text file:

{class: part}
# Part One

Complete Steps for Adding a Part to a Book

When you create a Leanpub book, we provide you with some default book content to help you get started.

Here's what the default book content looks like in a new book created in our Browser writing mode:

If you create a preview of the book now, the Table of Contents will look like this:

Now, let's go back to the Write tab, and add a Part to the beginning of the book, named "Part One":

Now if you create a new preview, you'll see "Part One" in the Table of Contents:

If you have a Custom book Theme, you can configure Part settings, like numbering etc.

Adding Content to a Part Page

If you go Part One in the book, it will look like this:

You can add a description and even an image to the Part page, like this:

Here's what this will look like when you generate your next preview:


If you have any feedback or questions about this article, please email the Leanpub team about it at hello@leanpub.com!

If you have any questions or thoughts on writing and self-publishing with Leanpub, please join our global community of authors in our Authors Forum here!

Are you interested in self-publishing, and creating your first Leanpub book? Here are some quick tutorials for our most popular writing modes: http://help.leanpub.com/en/articles/3088382-quick-walkthroughs-for-getting-started-on-a-leanpub-book

Are you looking for great deals on Leanpub ebooks, ebook bundles, and courses? Sign up for our Weekly and Monthly newsletter sales here!

To learn about amazing new books and authors, subscribe to our YouTube channel here: https://www.youtube.com/leanpub.

You can also follow Leanpub in lots of other places!

Did this answer your question?