Page MenuHomePhabricator

Nowiki tag not properly escaped when combined with other wiki markup
Closed, ResolvedPublic

Description

From http://en.wikipedia.org/wiki/Wikipedia:VisualEditor/Feedback#Bold_and_nowiki.2C_other_markup

If you add a nowiki tag by itself, the angle brackets get escaped out (<nowiki>, or does just plain </nowiki> work here at Bugzilla?). If you add a nowiki tag plus some wikimarkup, like an asterisk at the start of a line or bold text, it doesn't. This results in unpaired tags, sometimes functional wikimarkup, and always unexpected results.

Try this:

  • You need a </nowiki> tag '''here'''.

Version: unspecified
Severity: normal

Details

Reference
bz53228

Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 2:11 AM
bzimport set Reference to bz53228.

This is a Parsoid serializer bug:

[subbu@earth tests] echo '* &lt;/nowiki&gt; tag' | node parse --html2wt
<nowiki>* </nowiki></nowiki> tag

Change 137525 had a related patch set uploaded by Arlolra:
Escape nowiki when combined with other wiki markup

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

Change 137525 merged by jenkins-bot:
Escape nowiki when combined with other wiki markup

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