Last modified: 2014-10-19 19:52:48 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T40641, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 38641 - MathJax don't render correctly in TOC
MathJax don't render correctly in TOC
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
Math (Other open bugs)
unspecified
All All
: Normal major (vote)
: ---
Assigned To: physikerwelt
:
Depends on:
Blocks: 71975
  Show dependency treegraph
 
Reported: 2012-07-24 14:35 UTC by Beta16
Modified: 2014-10-19 19:52 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
Aspect in FireFox (17.32 KB, image/jpeg)
2012-07-24 14:35 UTC, Beta16
Details
Aspect in InternetExplorer (17.14 KB, image/jpeg)
2012-07-24 14:36 UTC, Beta16
Details
rendering in mathml mode (172.56 KB, image/png)
2014-10-19 19:52 UTC, physikerwelt
Details

Description Beta16 2012-07-24 14:35:59 UTC
Created attachment 10880 [details]
Aspect in FireFox

If the <math> tag is used in a heading, the rendering on Table of Content is wrong.
See screenshot in Firefox and IE (is not the same result) of the article [[:w:it:Velocità della luce]].
Comment 1 Beta16 2012-07-24 14:36:42 UTC
Created attachment 10881 [details]
Aspect in InternetExplorer
Comment 2 Derk-Jan Hartman 2012-09-07 13:12:06 UTC
This is what has been output:

<h2> <span class="mw-headline" id=".24_c_0_.5C.2C.5C.21_.24_velocit.C3.A0_superabile.3F"><span class="tex" dir="ltr">$ c_0 \,\! $</span> velocità superabile?</span></h2>


<li class="toclevel-1 tocsection-3"><a href="#.24_c_0_.5C.2C.5C.21_.24_velocit.C3.A0_superabile.3F"><span class="tocnumber">3</span> <span class="toctext">$ c_0 \,\! $ velocità superabile?</span></a>
Comment 3 Frédéric Wang 2013-09-10 12:51:21 UTC
Nageh's wiki2jax.js preprocessor only calls "ConvertMath" on span and img tags with "tex" class. So the TeX in the <li> of comment 2 won't be parsed. This could be fixed by either modifying Preprocess in wiki2jax.js or generating the correct span.tex and img.tex elements in the TOC. Or fixing bug 35479 and just removing the wiki2jax preprocessor.
Comment 4 physikerwelt 2014-02-19 12:26:40 UTC
I see the problem
https://it.wikipedia.org/wiki/Utente:Physikerwelt
<span class="tocnumber">2.2</span> <span class="toctext"><span>$ c_0 $</span></span></a>
Comment 5 Derk-Jan Hartman 2014-04-05 16:12:13 UTC
This seems like a bug in the ToC sanitizer or in the Tidy library.
Comment 6 physikerwelt 2014-10-19 19:51:55 UTC
https://www.mediawiki.org/wiki/Extension:Math/bug/38641
seem to be still a problem. should be fixed in the next release
Comment 7 physikerwelt 2014-10-19 19:52:48 UTC
Created attachment 16811 [details]
rendering in mathml mode

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links