Skip to main content

Can I include special markup in my book manuscript, that can be extracted by a script I write? For example, what if I wanted special markup to indicate images in my book are presentation slides, and then the slides could be extracted into a slide show?

Keywords: embedding slides in Markua, Markdown, indicate, PowerPoint, Keynote, presentation, extract

Leanpub Support avatar
Written by Leanpub Support
Updated yesterday

It's kind of possible to do this!

You can add "custom attributes" to images in your manuscript, which will be ignored by Leanpub's book generators.

In the following example, we've added the custom attribute slide: "01" etc. to images:

# Custom Attributes

This is the first picture.

{alt: "a picture of palm trees", title: "Palm Trees", slide: "01"}
![](palm-trees.jpg)

This is the second picture.

{alt: "a picture of palm trees", title: "Palm Trees", slide: "02"}
![](palm-trees.jpg)

This is the third picture.

{alt: "a picture of palm trees", title: "Palm Trees", slide: "03"}
![](palm-trees.jpg)

You can use any custom attribute you want to add, and our book generators should ignore it and produce the book as usual.

Questions or Feedback

If you have any questions or feedback for this article, please email the Leanpub Team at hello@leanpub.com.


Subscribe to our YouTube channel! Growing our audience there really helps Leanpub authors like you get discovered! Plus you'll learn about other authors, and their experiences writing and publishing.

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!

You can also follow Leanpub in lots of other places!

Did this answer your question?