Page MenuHomePhabricator

MathJax generates table markup with incorrect displaystyle
Closed, ResolvedPublic

Description

MathJax currently interprets the default value for displaystyle on mtable as "inherited" instead of the value "false" specified in the MathML spec. The problem is that this affect the generated MathML output. For example for the markup

{\displaystyle {\begin{aligned}\Gamma (z)&=\int
_{0}^{x}e^{{-t}}t^{{z-1}}\,{\frac {{\mathrm {d}}t}{t}}+\int
_{x}^{\infty }e^{{-t}}t^{{z+1}}\,{\frac {{\mathrm
{d}}t}{t}}\\&=x^{z}e^{{-x}}\sum _{{n=0}}^{\infty }{\frac
{x^{n}}{z(z+1)\cdots (z+n)}}+\int _{x}^{\infty }e^{{-t}}t^{{z}}\,{\frac
{{\mathrm {d}}t}{t}}.\end{aligned}}

on the Fourier Transform page, Mathoid generates <mtable> without explicit displaystyle="true" attribute and so the content render incorrectly in Gecko 29 and (I guess) MathPlayer.

See the discussion in http://lists.w3.org/Archives/Public/www-math/2014Jun/0001.html

An issue is opened in MathJax:

https://github.com/mathjax/MathJax/issues/839

We should cherry-pick the fix when it is ready before Math 2.0.


Version: unspecified
Severity: normal
URL: http://en.wikipedia.beta.wmflabs.org/wiki/User:Physikerwelt/Displaystyle

Details

Reference
bz66572

Related Objects

StatusSubtypeAssignedTask
ResolvedNone
ResolvedPkra

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 3:25 AM
bzimport added a project: Mathoid.
bzimport set Reference to bz66572.

Change 166198 had a related patch set uploaded by Frédéric Wang:
Experimental - Try to cherry-pick fix for MathJax's issue 839

https://gerrit.wikimedia.org/r/166198

As said on the commit, the code generated by Mathoid on
http://math-preview.wmflabs.org/wiki/Displaystyle is still incorrect with this patch. It seems that we'll have to wait MathJax 2.5 to see some progress here.

physik wrote:

the change is merged but not deployed

physik wrote:

I have the feeling that this a problem with mathjax core... maybe peter can comment on that

From discussion with Moritz:

This must be fixed in mathoid.

Change 166358 had a related patch set uploaded by Physikerwelt:
Merge recent changes from MathJax

https://gerrit.wikimedia.org/r/166358

Change 166198 abandoned by Frédéric Wang:
Experimental - Try to cherry-pick fix for MathJax's issue 839

Reason:
These changes are included in https://gerrit.wikimedia.org/r/#/c/166358/

https://gerrit.wikimedia.org/r/166198

Change 166358 merged by GWicke:
Merge recent changes from MathJax

https://gerrit.wikimedia.org/r/166358