Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How do I type text with brackets [ ] that does not link to another page?

Dennis Murphy
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 29, 2016

This question is in reference to Atlassian Documentation: Confluence Wiki Markup

How do I type text with brackets [ ] that does not link to another page? Eg, "LCM_BRIDGE[0]" should just be text, however I see "LCM_BRIDGE0" and the 0 is linking to another page.

To be specific, I am typing in the Description field in a JIRA Issue.

 

Also apologies Robert, I am unable to reply to you as I have reached my 24 hour limit to reply below.

2 answers

1 accepted

5 votes
Answer accepted
Stephen Deutsch
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 29, 2016

For JIRA to escape special characters, you need to put a \ in front of it.  Therefore, your text should look like this:

LCM_BRIDGE\[0\]

but once you save, it should show up properly.

0 votes
Robert Reiner _smartics_
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 29, 2016

You could try Undo (Ctrl-Z on Windows) after the autoconvert replaced the text with a link.

Note: On my installation I only have this problem if there is a space in front of the first bracket (Confluence 5.10). Otherwise the autoconvert does not take place.

Dennis Murphy
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 29, 2016

It seems as though I can put LCM_BRIDGE[ 0] and the result does not have a link, however, now there is a space between the bracket and the 0. I was not able to get the Undo to work as suggested.

Robert Reiner _smartics_
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 29, 2016

I tried it with the string you showed (no space) and then hit Ctrl-Z. This works on my machine.

(With the space comment in my answer I simply wanted to point out that my Confluence installation behaves differently smile - and there may be other issues I cannot reproduce).

Robert Reiner _smartics_
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 29, 2016

Ok - sorry, I missed the point of editing in JIRA (was misguided by the "Confluence Markup" smile). Thanks for the clarification!

So I assume that Stephen provided the correct answer for JIRA.

Stephen Deutsch
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 30, 2016

No problem... I was a bit confused myself first reading the question wink

Suggest an answer

Log in or Sign up to answer