#10193 closed defect (worksforme)
Unable to escape square brackets in alternate text for anchor links
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | wiki system | Version: | |
Severity: | normal | Keywords: | anchor link text escape square bracket |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description (last modified by )
If I have a title like:
=== Foo[123]: Bar === #foobar
and I try to create an anchor link to it like:
[#foobar Foo[123]: Bar]
The anchor link will render as:
Foo[123: Bar]
With only the "Foo[123
" being click-able. I've been unable to find a way to escape the closing square bracket in the anchor link's text so that Trac wiki will skip in and close on the final square bracket.
I've created a page on the demo site here showing the error. It is a direct copy of a page on our server:
http://trac.edgewall.org/demo-0.12/wiki/DigimerFaqLinkProblem
I can be reached at digimer@… for further info.
Attachments (0)
Change History (3)
comment:1 by , 14 years ago
Description: | modified (diff) |
---|
follow-up: 3 comment:2 by , 14 years ago
Resolution: | → worksforme |
---|---|
Status: | new → closed |
You should be able to use the [[...]]
syntax for that:
[[#foobar|Foo[123]: Bar]]
The demo page shows that it works. The only thing that you can't do with that syntax is have a label that ends with a ]
.
comment:3 by , 14 years ago
Replying to rblank:
… The only thing that you can't do with that syntax is have a label that ends with a
]
.
Even that works ;-)
[[#foobar|'Foo[123]: [Bar]']]
Just changing the problem illustration link to point to the demo site instead - don't want to keep that page in the real wiki (I've now deleted it).