Skip to main content
All CollectionsAuthor Help
I'm using the Markua directive {sample: true} to try and make a sample book when I preview and publish, but no sample book is generated. What can I do?
I'm using the Markua directive {sample: true} to try and make a sample book when I preview and publish, but no sample book is generated. What can I do?

Keywords: sample, sample book, not working, not showing up

Leanpub Support avatar
Written by Leanpub Support
Updated over 8 months ago
I'm using the Markua directive {sample: true} to try and make a sample book when I preview and publish, but no sample book is generated. What can I do?

The most common reason authors have this problem, is that you can't have a blank line between the sample directive, and the heading. So, this won't work:

{sample: true}

# Chapter One     

...but this will:

{sample: true}
# Chapter One


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?