Last modified: 2013-01-14 17:07:07 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T43531, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 41531 - Sometimes wikisyntax for lists is interpreted inside <pre>
Sometimes wikisyntax for lists is interpreted inside <pre>
Status: NEW
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
1.21.x
All All
: Low normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-10-30 08:32 UTC by Michael M.
Modified: 2013-01-14 17:07 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Michael M. 2012-10-30 08:32:36 UTC
Under some circumstances list syntax is parsed inside <pre> tags.
The same happens with <syntaxhighlight> and additionaly causes a terribly mis-nested output.

Example input:

<pre>[[a]]
#[[a]]</pre>
----
*<pre>[[a]]
[[a]]</pre>
----
*<pre>[[a]]
#[[a]]</pre>

Output:

<pre>[[a]]
#[[a]]</pre>
<hr>
<ul><li><pre>[[a]]
</pre></li></ul>
[[a]]
<hr>
<ul><li><pre>[[a]]
</pre></li></ul>
<ol><li>[[a]]
</li></ol>

No 1 is ok.
In No 2 the second line is outside the <pre>, but not parsed as wikisyntax. With <syntaxhighlight> instead of <pre> two additional </div>s appear (unless tidy removes them again).
No 3 is like No 2, but the # is interpreted as wikisyntax for <ol>.
Comment 1 Andre Klapper 2012-11-02 11:34:33 UTC
Michael: Which MediaWiki version is this about?
Comment 2 Michael M. 2012-11-02 11:49:27 UTC
(In reply to comment #1)
> Michael: Which MediaWiki version is this about?

Probably every, at least 1.21wmf2.
Comment 3 Umherirrender 2012-11-02 14:59:07 UTC
It is also broken with a colon, see bug 22785/bug 1581

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links