[wp-trac] [WordPress Trac] #13340: wpautop breaks inline MathML
WordPress Trac
noreply at wordpress.org
Tue Feb 7 16:17:03 UTC 2023
#13340: wpautop breaks inline MathML
-------------------------------------------------+-------------------------
Reporter: nicholaswilson | Owner: joedolson
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.2
Component: Formatting | Version: 2.9.2
Severity: normal | Resolution: fixed
Keywords: needs-dev-note has-patch has- | Focuses:
testing-info has-unit-tests commit | accessibility
-------------------------------------------------+-------------------------
Changes (by joedolson):
* status: accepted => closed
* resolution: => fixed
Comment:
In [changeset:"55272" 55272]:
{{{
#!CommitTicketReference repository="" revision="55272"
Formatting: Treat `math` elements as block-level elements.
The `math` element can be displayed either as a block or inline element.
If `wpautop` only treats it as an inline element, it will break multiline
elements by inserting `br` elements. Treating the element as a block
element means that the editor won't break common normative usages of the
`math` element.
Prevent `math` elements from having internal elements split up with `br`
elements, disrupting formatting.
Props nicholaswilson, wojtek.szkutnik, hakre, conner_bw, ericlewis,
hughie.molloy, SteelWagstaff, ryokuhi, joedolson, bgoewert,
adamsilverstein, joedolson.
Fixes #13340.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/13340#comment:38>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list