Description

When trying to add [ ] brackets around a target (URL, etc.) by using the syntax [[[My Target]]]  the extra left [ is included in the hyperlink text.

Steps to reproduce

See example below.

Example

If the markup contains a) [[[My Target]]] or b) [[[http://moinmo.in]]]  then the current rendered result is

a) [My Target] or b) [http://moinmo.in]

However, the desired result is a) [ My Target ] or b) [ http://moinmo.in ].

Component selection

Details

MoinMoin Version

1.6.0 Development Version

OS and Version

Windows XP

Python Version

2.5.1

Server Setup

Server Details

Language you are using the wiki in (set in the browser/UserPreferences)

English

Workaround

Use the [ [[My Target]] ]  syntax (i.e., add one space between the brackets to be displayed and the double brackets required for the markup).

Discussion

a) is a limitation of the parser, we maybe can fix that.

b) is simply wrong, target has to be a URL, not a URL with decoration around.

If you absolutely want b), you can try  [[http://server/ | [http://server/] ]]  which renders as:

[http://server/]

a) moin2 renders this as http://test.moinmo.in:8080/%5BMy%20Target

Plan


CategoryMoinMoinBug

MoinMoin: MoinMoinBugs/1.6.0BracketedURLsRenderedIncorrectly (last edited 2011-01-18 10:45:52 by ReimarBauer)