Linking to a file: Leading colon not stripped
Closed, ResolvedPublic


Linking to a file with [[:File:Foo.jpg]]. The leading colon not stripped:

Version: unspecified
Severity: normal

bzimport added a project: Parsoid.Via ConduitNov 22 2014, 12:50 AM
bzimport set Reference to bz43171.
Raymond created this task.Via LegacyDec 16 2012, 4:37 PM
Jdforrester-WMF added a comment.Via ConduitDec 21 2012, 9:55 PM

Thank you for this. However, this is intentional - otherwise, it would not be a link to the file, it'd be a transclusion of the image, which will be done differently (an insertion inspector). Links to pages should not accidentally become images for users who do not (and should not) understand the way that wikitext expects that.

Marking as WONTFIX.

GWicke added a comment.Via ConduitDec 22 2012, 12:07 AM

Well, our rendering differs from the PHP parser.

We could still support the same rendering by making the serializer clever enough to re-add the colon to the text before checking the link content for changes.

Low priority for now, but something we should support eventually.

GWicke added a comment.Via ConduitJan 11 2013, 11:41 PM

Add Comment