Page MenuHomePhabricator

MathJax introduces new ways to enter math
Closed, DeclinedPublic

Description

Author: physik

Description:
In the MathJax mode span elements, that any user can enter like
<span class="tex">\sum_{i=0}^\infty \frac1{2^i}=2</span>
will be rendered as math, whereas this is not visible if the MathPNG, MathSource or MathLaTeXML is used.


Version: master
Severity: major

Details

Reference
bz54026

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 2:08 AM
bzimport added a project: Math.
bzimport set Reference to bz54026.
bzimport added a subscriber: Unknown Object (MLST).

OK, I guess this will be fixed if we use <script type="mml/tex"> tag in the future (unless users can enter script tag of course).

Users can not enter script tags (with any type); tags that are not whitelisted are HTML-encoded. See https://en.wikipedia.org/w/index.php?title=User:Superm401/Sandbox&oldid=573293058 for a demo with mml/tex

physik wrote:

Still not fixed in MathJax 2.3

physik wrote:

(In reply to comment #3)

Still not fixed in MathJax 2.3

https://en.wikipedia.org/wiki/User:Physikerwelt/sandbox

@Physikerwelt This is caused by a bad configuration within the Math extension, it is not the default behavior of MathJax to render such a span.

It's Javascript, the only way you can do post processing. Select this and now convert. Should be fixed by switching to script based output, because that's not something that can be entered by users.

I thought physikerwelt's plan was to switch to MathML+SVG+PNG output by default, with server-side conversion so the TeX source problem becomes irrelevant here.

However, for people who still want to use the client-side MathJax mode, wiki2jax will still process the TeX source (in the PNG alt text or in a span) and a user can enter it.

physik wrote:

In principal this issue has been solved by texvccheck.
However, it's disabled via config
https://git.wikimedia.org/blob/operations%2Fmediawiki-config/bf53aa2d778587d4265cd77215b9396bfaa8885d/wmf-config%2FCommonSettings.php#L2043

Maybe we find a way to test if the performance issue is solved? However I have no idea how we could test that and who could help us with that.

Physikerwelt claimed this task.
Physikerwelt subscribed.

MathJax will be removed T99369