Advice and answers from the Leanpub Team

If you are seeing unwanted line numbers in code samples, you can turn them off by selecting "Writing" in the Book Tools menu for your book, and then selecting "Book Theme". If you then choose "Custom", you can choose to turn off line numbers on code samples (make sure to click the blue button at the bottom of the page to save the change). The next time you create a Preview, you should not see the line numbers anymore.

Did this answer your question?