Edgewall Software
Modify

Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#10193 closed defect (worksforme)

Unable to escape square brackets in alternate text for anchor links

Reported by: Digimer <digimer@…> 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 osimons)

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 osimons, 13 years ago

Description: modified (diff)

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).

comment:2 by Remy Blank, 13 years ago

Resolution: worksforme
Status: newclosed

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 ].

in reply to:  2 comment:3 by Christian Boos, 13 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]']]

Foo[123]: [Bar]

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from (none) to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.