Fixed #468: Formatter and ReverseFormatter now process inter-namespace links correctly.
This commit is contained in:
parent
f8e410bf6a
commit
c86aa2f318
4 changed files with 15 additions and 12 deletions
|
@ -234,7 +234,7 @@ namespace ScrewTurn.Wiki {
|
|||
string insertion = "[";
|
||||
if(match.Groups[2].Value == @"target=""_blank"" ") insertion += "^";
|
||||
string decoded = UrlDecode(match.Groups[3].Value);
|
||||
insertion += decoded;
|
||||
insertion += (decoded.StartsWith(" ") ? "++" : "") + decoded.Trim();
|
||||
if(match.Groups[6].Value != decoded) insertion += "|" + match.Groups[6].Value;
|
||||
insertion += "]";
|
||||
buffer.Insert(match.Index, insertion);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue