Skip to main content
All CollectionsAuthor HelpMarkdown and Markua
How do I add an image to a Leanpub book?
How do I add an image to a Leanpub book?

Keywords: image, images, picture, pic, pics, add, insert

Leanpub Support avatar
Written by Leanpub Support
Updated over 5 months ago
How do I add an image to a Leanpub book?

Images are added to Leanpub books in a way very similar to adding images in Markdown.

In Markua, Leanpub's "Markdown for Books" markup syntax, you add images to a book by:

1) Adding the image file to a folder container for the book's "resources"

2) Referencing the image in your manuscript, in the place where you want the image to appear

How this works precisely will depend on the writing mode you choose for your Leanpub book.

Related Article: What is Markua?

Please find the links below for articles explaining how to add images in your writing mode.


How do I add an image or picture to a book, if I'm using the in-browser text editor?

You can find a link to an article explaining how to add images to a Browser mode book here.

How do I add an image to a Leanpub book if I'm writing in the GitHub or Dropbox writing mode?

You can find a link to an article explaining how to add images to a GitHub or Dropbox mode book here.

Special Case: Adding SVG Images as Inline Code

Technical Information

For technical information about how this all works and all the extra details of how you can add images to Leanpub books, please see the Markua specification.


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?