Skip to main content
All CollectionsAuthor Help
How can I add a web link to an image?
How can I add a web link to an image?

Keywords: how, link, image, web

Leanpub Support avatar
Written by Leanpub Support
Updated over a week ago

In Markua, you add an image to a book like this:

![A Piece of Cake](cake.jpg)

In this example, the filename of the image is cake.jpg, and the caption is A Piece of Cake.

If you don't want a caption, you can just leave the space between the square brackets [ ] empty, like this:

![](cake.jpg)

...but please remember, you always need to include the square brackets!

Also in Markua, you can link words or sentences to a web page, like this:

[A Piece of Cake.](https://unsplash.com/photos/I48gnI1Qs5o)

In this example, the web page address is https://unsplash.com/photos/I48gnI1Qs5o, and the words that will be formatted as a clickable link are A Piece of Cake.

Normally, wouldn't make a whole sentence into a link, but you would instead to something like this:

My favorite part of birthday parties is when you get to eat [a piece of cake.](https://unsplash.com/photos/I48gnI1Qs5o)

Now, this next bit is a bit mind-bending at first, but basically, to make an image a link, you put the image syntax in the first example above, inside the link syntax in the second example above, like this:

[![A Piece of Cake](cake.jpg)](https://unsplash.com/photos/I48gnI1Qs5o)

Here is an image showing the part of the line that is the image syntax:

If we blur out the image syntax, you can see how it is now inside the link syntax:

Here's an example you can copy and paste, to try it in your own manuscript:

[![A Piece of Cake](cake.jpg)](https://unsplash.com/photos/I48gnI1Qs5o)

OK, that's it!

Did this answer your question?