Page MenuHomePhabricator

Numbered list wikitext rendered inside <pre> tags
Closed, ResolvedPublic

Description

Author: reflection

Description:
The error occurs in the following situation:
<pre>
Trash
#test1
#test2
#test3
blah
blah1
blah2
blah3
</pre>

It will render all of the word-initial pound signs as an ordered list /outside/
of the pre element

Oddly, it can be avoided by using nowiki tags within the pre tag

<pre>
<nowiki>
Trash
#test1
#test2
#test3
</nowiki>
blah
blah1
blah2
blah3
</pre>

Actually inserting an ordered list inside the pre tags has the desired effect of
showing the html:
<pre>
<ol>
<li>test</li>
<li>test1</li>
<li>test2</li>
</ol>
</pre>

It would be desirable that nowiki tags used inside pre tags rendered as-is
without be touched by the parser. As far as I know, no markup whatsoever should
be interpreted when inside pre tags, as it is preformatted text.


Version: 1.5.x
Severity: normal
URL: http://en.wikipedia.org/wiki/User:Alterego/Sandbox

Details

Reference
bz2887

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 8:39 PM
bzimport added a project: MediaWiki-Parser.
bzimport set Reference to bz2887.
bzimport added a subscriber: Unknown Object (MLST).

Already solved. Fix will be in next version (beta4?)

  • This bug has been marked as a duplicate of 2857 ***