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

           Summary: :<math> tag works incorrectly with "leave as tex"
           Product: MediaWiki
           Version: 1.15.1
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: Page rendering
        AssignedTo: wikibugs-l@lists.wikimedia.org
        ReportedBy: de...@cs.dartmouth.edu


When using <math> tags it is common to precede with a colon to indent. E.g:

:<math>x^2
+ y
</math>

This code breaks with the "leave as tex" option under preferences.  The y ends
up on a different line, and a <pre> section is added to the document with just
a dollar sign in it.

If we view source we can see what's happening.  The colon indents using <dl>
tags.  In "leave as tex" mode we get something like:

<dl><dd>$ x^2
</dd></dl>
<p>+ y
</p>
<pre>$

when what we want is:

<dl><dd>$ x^2 + y$
</dd></dl>

The problem appears to be the order in which tags are added.  

I have the same trouble using the jsMath plugin -- works fine except when
there's a colon before multiline math.

-- 
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
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to