How to display attached images with markdown

I want to display an image(attached to the page) with markdown. From what I looked up on the various portals, the format is:

![Alt text](/path/to/img.jpg)

But, this works for actual links to the image. How do i reference the image that is attached to the page itself.

3 answers

1 accepted

Accepted Answer
1 vote
Stephen Deutsch Community Champion Aug 08, 2017

It doesn't seem like the Wiki Markup converter has any smart check to determine whether an image is attached to a page or not, so you'll probably have to use the following format:

![](/download/attachments/<page_id>/<filename>)

Thank you for the answer. It worked. Really appreciate your help.

Stephen Deutsch Community Champion Aug 08, 2017

No problem :)

Stephen Deutsch Community Champion Aug 08, 2017

For anybody else coming to this page, the format is actually

![](<contextpath>/download/attachments/<page_id>/<filename>)

so for Confluence Cloud users it would be

 ![](/wiki/download/attachments/<page_id>/<filename>)
0 votes
Stephen Deutsch Community Champion Aug 07, 2017

Hi Apurva,

Could you please let us know which product you are using (Confluence?), which type you are using (Cloud, Server), and if Server, which version?

Yes, COnfluence server 5.8

Stephen Deutsch Community Champion Aug 08, 2017

Are you inserting markdown in the "Insert Markup" menu or using a plugin to display it?

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Thursday in Confluence

What are your project planning tips?

Hello Community,  Jessica here from the Confluence product marketing team! Today I wanted to get your takes on project planning –– what works, what doesn’t, how do you know if you’re doing it r...

145 views 0 3
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you