If you go to

https://leanpub.com/YOURBOOK/edit_formatting

and uncheck "Show line numbers on code samples" it should work.

We haven't updated Leanpub to handle this Markua attribute yet, so it's still all-or-nothing via this setting...

Did this answer your question?