All Collections
Author Help
Markdown and Markua
The {pagebreak} directive currently has no effect when you read a book in the browser
The {pagebreak} directive currently has no effect when you read a book in the browser

Keywords: page break, pagebreak, {pagebreak} directive, EPUB, browser, no effect

Leanpub Support avatar
Written by Leanpub Support
Updated over a week ago

In Markua, you can create pagebreaks by using typing the pagebreak directive on a line by itself, with nothing on the lines above or below it, like this:


{pagebreak}

That will create a page break in the PDF and in the EPUB file.

However, currently this does not work if you view the book on Leanpub, in your browser.

So, for example, this manuscript:

# Testing Pagebreaks

The quick brown fox just left the dog alone.

{pagebreak}

The dog was very grateful and enjoyed the rest of his nap.

{pagebreak}

Then the fox decided to have a nap too.

...would look like this in the EPUB file (the first two pages, in Apple Books, in dark mode):

...but it would look like this if you click the link to view the book in your browser:

This is a known issue and has been added to our queue.


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?