Page MenuHomePhabricator

Linter does not detect link-in-link when wikilink is wrapped in italics
Closed, ResolvedPublic

Description

This one is easier to see than to explain:

https://en.wikipedia.org/w/index.php?title=User:Jonesey95/sandbox3&oldid=934562159

In the first example, a plain wikilink is placed inside a URL link. It is correctly flagged by Linter as a link-in-link error.

In the second example, a wikilink wrapped in italic formatting is placed inside a URL link. It is not flagged by Linter as a link-in-link error, but it should be.

Event Timeline

Jonesey95 renamed this task from Linter does not detect link-in-link when link is wrapped in italics to Linter does not detect link-in-link when wikilink is wrapped in italics.Jan 7 2020, 5:58 AM
ssastry triaged this task as Medium priority.Mar 8 2020, 1:00 AM

If you want more examples of errors missed by Linter, you can compare on frwiki between what Linter finds and what WPCleaner finds.

Change 660920 had a related patch set uploaded (by Sbailey; owner: Sbailey):
[mediawiki/services/parsoid@master] Add lint for Parsoid wikilinks in extlinks with italic or bold

https://gerrit.wikimedia.org/r/660920

Change 660920 merged by jenkins-bot:
[mediawiki/services/parsoid@master] Add lint for Parsoid wikilinks in extlinks with italic or bold

https://gerrit.wikimedia.org/r/660920

Change 666213 had a related patch set uploaded (by C. Scott Ananian; owner: C. Scott Ananian):
[mediawiki/vendor@master] Bump wikimedia/parsoid to 0.13.0-a25

https://gerrit.wikimedia.org/r/666213

Change 666213 merged by jenkins-bot:
[mediawiki/vendor@master] Bump wikimedia/parsoid to 0.13.0-a25

https://gerrit.wikimedia.org/r/666213