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

How to format URLs in {{code}} in a table?

Ed Treijs Sep 09, 2011

Confluence 3.3.3. Working in Wiki Markup.

I put the double curly brackets around a URL. Works fine outside of a table. But inside a table, the curly brackets are shown, then a space, then the URL, then a line break, then the closing curly brackets. Like:

{{ URL

It's not a problem putting code into a table, as a non-URL works fine (e.g. {{TBD}} appears properly as Courier in the table cell).

I have a nicely code-formatted URL sitting outside a table. Just to test, I put a table around it. And now it's not in code format. Remove the bars on either side, taking it "out" of the test table, and it goes back to being a Courier-font URL.

I don't see anything useful in the Confluence documentation. Have I found a bug? Do I need to use some kind of escape on code-format URLs inside tables? Table-plus macro doesn't help. I'm stumped.

2 answers

1 accepted

0 votes
Answer accepted
Patricia Wiebe Sep 09, 2011

If you are just trying to format the URL nicely, how about the "no format" macro? I threw together a quick table:

|| URL || Something else ||
| {noformat:nopanel=true}{noformat} | Hello |
| {{TBD}} | There |

and it looked fine.

Ed Treijs Sep 09, 2011

Thanks--yes that works! I checked it in Firefox and IE. (We are using Adaptavist as well, if that makes any difference.)

There's a bonus: the blue colouring and underlining is removed. And it's no longer enabled as a hyperlink. That's good, because I'm illustrating how to assemble the final URL (it's getting data from a service), and the partial URLs won't work. Even the complete URL examples may not work, depending on the data available.

0 votes
David Simpson Community Leader Sep 09, 2011
Is it just URLs that are the problem? If so, as a workaround try adding the 'h' as it's HTML entity instead. Let me know if it works :)
Ed Treijs Sep 09, 2011

Yes, I think it's only URLs. When I put in a {{TBD}} in the table, it works fine.

I am not sure where to add an 'h'.

For reference, the URLs are like:

They don't absolutely have to be in code, but they're a lot more readable if they are. And I'd like to be consistent with my treatment of the same URLs when they're not in a table.

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Confluence

6 Awesome Ways to Apply Trello, JIRA and Confluence to your Project

I attended  Atlassian Summit 2019  and learned a lot from the presenters, attendees and knowledgeable Atlassian product managers. The presentations I attended focused on applying Agile, pla...

1,227 views 7 18
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