Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

Pasted inline code (via Markdown-style backticks) renders hyperlinks incorrectly


One thing I like about Confluence is that I can paste in Markdown and it renders correctly (mostly). I know it's probably not an officially supported feature but I appreciate the effort. The one instance where it failed me is when I tried to put a hyperlink inside inline code. It generates and displays superfluous angle brackets. Example:

Some link inside some code : ``.

This would render an open angle bracket before the h of http and after the inline code.

Is there maybe a nice workaround for that?


1 answer

0 votes
Bill Bailey Community Leader Mar 22, 2021

Not sure what you mean by inline code, are you referring to the code macro? Or do you mean monospace format from the menu?

I know that later places HTML code tags around the content, so not sure hyperlinks are allowed.

Hey Bill, thanks for your answer.

Sorry for being unclear. The problem occurs when trying to paste a code block (invoked with triple backtickets) and also when trying to paste text in monospace format (invoked with single backticks). For example, try pasting this as raw text into the editor:

Some regular text. `Some text in monospace format. Hyperlinks like will have angle brackets around them`.

I understand why maybe it would be a bad idea to allow hyperlinks. The thing is, if you type the same text directly into the editor, it is displayed correctly (without angle brackets).

Bill Bailey Community Leader Mar 23, 2021

It probably something in the new editor. From a best practices point of view, when I have a line of code, I use the code macro to offset it from the rest of the text. And when because of issues with formatted pasted content, I tend to paste it into something like Notepad++ to clean out any formatting.

My basic rule is to start with clean content, THEN use the format tools inside the editor. You will run in to fewer problems in the long run. IMHO.

Thank you for your answer!

Suggest an answer

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

🎨 Add some visual life to your templates

Hi Atlassian Community, My name is Avni Barman, and I am a Product Manager on the Confluence Cloud team. Based on feedback from you, we are giving admins more power to create templates that a...

169 views 2 8
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