[wp-trac] [WordPress Trac] #13340: wpautop breaks inline MathMl
WordPress Trac
wp-trac at lists.automattic.com
Tue May 11 14:04:58 UTC 2010
#13340: wpautop breaks inline MathMl
----------------------------+-----------------------------------------------
Reporter: nicholaswilson | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Unassigned
Component: Formatting | Version: 2.9.2
Severity: normal | Keywords:
----------------------------+-----------------------------------------------
wpautop treats inline <math> tags as block; they in fact may be
placed block or inline, with their flow model dependent on the mode or CSS
display property.
Trivial to fix; just needs someone to commit the change. Remove "|math"
from $allblocks in file wp-includes/formatting.php. math tags on their own
will be wrapped in a paragraph, which is fine.
As a very convenient enhancement, please replace on line 210:
{{{
if ($br) {
- $pee = preg_replace_callback('/<(script|style). ....
+ $pee = preg_replace_callback('/<(script|style|math) ...
}}}
to prevent MathML being polluted with breaks (current required workaround
people are using is to have the whole block on one line, which is very
messy to edit).
--
Ticket URL: <http://core.trac.wordpress.org/ticket/13340>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list