Page MenuHomePhabricator

Content inside <nowiki>, <source>, etc tags should not be altered at Special:PagePreparation
Open, MediumPublic

Description

Author: pr4tiklahoti

Description:
As seen at https://www.mediawiki.org/w/index.php?title=Extension%3ALinks&diff=1113386&oldid=1082879, the tool converted a link present inside <nowiki> tags into two-party form (added a pipe).

However, text inserted inside tags like <nowiki>, <source>, etc by the user was intended to be displayed that way and should not be altered.

Hence, not only links, but in general, any text present inside <nowiki> tags should not be altered while preparing the page for translation.

Details

Reference
bz69797

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 3:29 AM
bzimport set Reference to bz69797.

This is important and not so trivial: we also have spacepre, pre, code, source, syntaxhighlight.

jayvdb renamed this task from Content inside <nowiki> tags should not be altered at Special:PagePreparation to Content inside <nowiki>, <source>, etc tags should not be altered at Special:PagePreparation.Dec 15 2015, 1:54 AM
jayvdb raised the priority of this task from Medium to High.
jayvdb updated the task description. (Show Details)
jayvdb added a project: SyntaxHighlight.
jayvdb set Security to None.

We could do this using a custom filter; see the section in the Pygments docs entitled Write your own filter.

In T71797#1879905, @ori wrote:

We could do this using a custom filter; see the section in the Pygments docs entitled Write your own filter.

I dont understand how that could help this task.

How does this have anything to do with SyntaxHighlight?

How does this have anything to do with SyntaxHighlight?

It also occurs with text in <syntaxhighlight>..</syntaxhighlight>.

Nikerabbit lowered the priority of this task from High to Medium.Apr 20 2016, 1:35 PM