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

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 vote
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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Friday in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

287 views 11 10
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