Page MenuHomePhabricator

<nowiki> inside a <pre> is not rendered on page.
Closed, InvalidPublic

Description

Author: rasamassen

Description:
When placing a <nowiki> inside a <pre> tag, the <nowiki> is lost on the rendering of the page. Because it is inside a <pre> tag, the parser should leave the <nowiki> as text inside the <pre>.

Refer to the text on http://en.wikipedia.org/wiki/Category:Sorority_and_fraternity_user_templates under Categories.


Version: unspecified
Severity: normal
URL: http://en.wikipedia.org/wiki/Category:Sorority_and_fraternity_user_templates

Details

Reference
bz13238

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:07 PM
bzimport set Reference to bz13238.
bzimport added a subscriber: Unknown Object (MLST).

wiki.bugzilla wrote:

This is expected behaviour imo. If you want to keep <nowiki> inside <pre> tags, you can use
<pre><nowiki><nowiki></nowiki>Foo<nowiki></nowiki></nowiki></pre>
This works well.

Need a parser test. Any documentation about <pre> should mention it is not like <nowiki>.

Well, it's a bit confusing since a single <nowiki> would be rendered literal.

However, per another parserTest, the <nowiki> act inside pre for compatibility with pre-1.7

Added parser tests in r73988.