How to add image in markdown

Tong Zhao June 1, 2020

We have this company Confluence website, and it seems we have the free version macro of "Insert Markup", in which you could select one of two: Insert "Confluence Wiki" or Insert "Markdown".

I selected the "Markdown" option and was trying to embed an image from an external url. I tried a format posted in the community but didn't work. The format I tried wass:

[!Image Title!|https:www.imageurl.com]

 

Can someone help? Thanks.

1 answer

1 accepted

1 vote
Answer accepted
Dominic Lagger
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 3, 2020

Hi @Tong_Zhao 

I don't know the answer for myself, but can you try the solution from this question:

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>)

Hope this helps.

Regards, Dominic

Tong Zhao June 3, 2020

Thank you Dominic for quick answer. The solution you referred to seems to target attachments uploaded to the Confluence cloud. But for images coming from an external url, this reference doesn't seem to provide a solution?

Dominic Lagger
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 3, 2020

I don't know this. have you tried this:

 ![](<<URL>>)
Like Tong Zhao likes this
Tong Zhao June 3, 2020

Hi Dominic, you're the best! This worked seamlessly.. Do you by chance also know how to specify the displayed size of the image?

Dominic Lagger
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 3, 2020

I found this on stackoverflow:

![](<<URL>> =100x20)

You can skip the HEIGHT

![](<<URL>> =250x)
Tong Zhao June 5, 2020

Thank you Dominic but in this case it doesn't work. I'll keep looking. Shall I refer to the CommonMark.org for Confluence markdown conventions, or is there a better site somewhere?

Dominic Lagger
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 5, 2020

The site seems pretty good ;-) 

For Confluene Wiki Markup (not Markdown) see this page here: 

Like Tong Zhao likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events