[wp-trac] [WordPress Trac] #30445: Math formulas displaying oddly
WordPress Trac
noreply at wordpress.org
Sat Nov 22 05:26:42 UTC 2014
#30445: Math formulas displaying oddly
--------------------------+-----------------------
Reporter: PCZatDalton | Owner:
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 4.1
Component: Formatting | Version: 4.0
Severity: normal | Resolution:
Keywords: needs-patch | Focuses:
--------------------------+-----------------------
Changes (by rmccue):
* keywords: => needs-patch
* milestone: Awaiting Review => 4.1
Comment:
Hi PCZatDalton, thanks for the bug report here.
Here's what seems to be happening with the issue. `wptexturize` takes care
of changing certain characters, such as `--` to an en dash. One of the
things it handles here is
[https://core.trac.wordpress.org/browser/trunk/src/wp-
includes/formatting.php#L290 changing the `x`] in `9x9` to a real
multiplication symbol. (For example, something like `1024x768`)
This was changed in r28719 (#19308) to also include negative numbers, but
it looks like it might be an issue, since `x` is also a valid variable
name. While the LaTeX plugin could be fixing this, it'd really be a
workaround.
I'd suggest we remove the `-` from the regex, so that it only matches
`9x9` not also `9x-9`, which is ambiguous.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/30445#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list