Tomaž Šolc schrieb:
Hi
(The actual regexp is using (.+?), but using an empty string as link text will still produce a link for some strange reason.)
Empty string is actually a special case: such links will use the name of the target page minus the namespace prefix for the anchor.
but that's done on save, i guess before the actual parsing.
Pipe trick syntax: [[User:Foo|]] will turn into [[User:Foo|Foo]] upon save.
Yay arcane special cases.
-- daniel