It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Adding markdown with external image and link

Hi team,

 

I was trying to add a CIrcleCI badge using their provided markdown:

[![CircleCI](https://circleci.com/gh/Curve-Tomorrow/retina-dr-api.svg?style=svg)](https://circleci.com/gh/Curve-Tomorrow/retina-dr-api)

which provides me with the badge, but clicking it only takes me to the image, not to the CircleCI project.

I've taken a look at the keyboard shortcuts and guides to insert images with links, but I've had no luck in formatting the MD correctly.

 

Any help/tips?

 

Cheers

1 answer

0 votes
marc Community Leader Jan 21, 2020 • edited

Hi @Cliffery ,

you'd need to format the link in a different way:

[! http://external/image.png!|http://external/link.html ]

 

Thanks @marc

So I've tried using that format, but it doesn't display the badge icon, it just shows the text.

The right column is with the space after first bang, and before the closing ], the left is without the spaces. 

image.png

If I insert:


![CircleCI](https://circleci.com/gh/Curve-Tomorrow/retina-dr-api.svg?style=svg)

it shows the badge but with no link.

If i insert:


!(https://circleci.com/gh/Curve-Tomorrow/retina-dr-api.svg?style=svg)

 It just shows the link but no badge (Which is odd, I would assume the [CircleCI] is just the alt text right?)

 

I'm sure there's a simple answer to this, I've played around with [], spaces, but still haven't found the correct format yet.

Any other insights?

marc Community Leader Jan 22, 2020

It seems confluence cloud does not support all markdown: https://jira.atlassian.com/browse/CONFCLOUD-68137

Ah! Yep, that would be it.
Thanks.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Confluence Cloud

Convert your old pages to the new editor

Hey Community 👋, Following the recent release of the new editor, we will be releasing the ability for users to convert existing pages from the legacy editor to the new editor. We’ve been resp...

4,469 views 30 21
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you