https://bugzilla.wikimedia.org/show_bug.cgi?id=41531

       Web browser: ---
             Bug #: 41531
           Summary: Sometimes wikisyntax for lists is interpreted inside
                    <pre>
           Product: MediaWiki
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: Parser
        AssignedTo: [email protected]
        ReportedBy: [email protected]
    Classification: Unclassified
   Mobile Platform: ---


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>.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to