Last modified: 2014-10-26 17:14:18 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 T38060, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 36060 - MathJax doesn't work in LivePreview
MathJax doesn't work in LivePreview
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
Math (Other open bugs)
unspecified
All All
: Normal normal with 3 votes (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on: 24134 30713
Blocks:
  Show dependency treegraph
 
Reported: 2012-04-18 08:37 UTC by Liangent
Modified: 2014-10-26 17:14 UTC (History)
12 users (show)

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


Attachments

Description Liangent 2012-04-18 08:37:49 UTC
Raw TeX commands are displayed.
Comment 1 Michael M. 2012-04-18 09:52:32 UTC
More or less the same as in bug 33399. If JavaScript features in LivePreview don't work for core features one can't expect it to work for extensions.
A hook system as suggested in bug 23580 would be the best way to fix this bug.
See also bug 35478.
Comment 2 Mark A. Hershberger 2012-04-19 02:31:05 UTC

*** This bug has been marked as a duplicate of bug 33399 ***
Comment 3 Krinkle 2012-08-12 06:20:05 UTC

*** This bug has been marked as a duplicate of bug 24134 ***
Comment 4 Krinkle 2012-08-12 06:24:01 UTC
Re-opening as this needs two things:
* Be able to get modules loaded that extensions add to the page (bug 24134)
* Be able to run code for "article loaded" when the article html is loaded. Usually this is document-ready which is how we do it now, but in case of preview we have multiple "article loaded" points within the lifecycle of a single page. This will be made possible by 30713.
Comment 5 Derk-Jan Hartman 2013-04-28 10:05:37 UTC
MathJax module now has a $().renderTex command that can be run to render domelements that contain tex commands. A preview hook can use this to postprocess the preview output.
Comment 6 Bartosz Dziewoński 2013-04-29 16:46:52 UTC
(For the record, there is now a fix in progress for bug 30713 which is a dependency here.)
Comment 7 Derk-Jan Hartman 2013-06-02 21:58:30 UTC
Both Ajaxpreview and wikEd now use the renderTex() command to render MathJax in their ajax based preview modes:

Example: https://en.wikipedia.org/w/index.php?title=User%3AJs%2Fpreview2.js&diff=558032369&oldid=520879456

Soon to be improved by making use of https://gerrit.wikimedia.org/r/56762
Comment 8 Richard Morris 2014-01-30 08:13:24 UTC
A specific problem is that after a session in VisualEditor a full refresh is not done and MathJax is not rerun, so the raw latex code is displayed. Apparently according to bug 51565 gadgets should listen to "wikipage.content". I have heard rumours that the fix to bug 48560 will fix this problem.

This ha come up at https://en.wikipedia.org/w/index.php?title=Wikipedia:VisualEditor/Feedback&oldid=593049936
Comment 9 Gerrit Notification Bot 2014-04-05 17:18:49 UTC
Change 124064 had a related patch set uploaded by TheDJ:
MathJax: Listen for wikipage.content hook

https://gerrit.wikimedia.org/r/124064
Comment 10 Gerrit Notification Bot 2014-04-07 16:07:07 UTC
Change 124064 merged by jenkins-bot:
MathJax: Listen for wikipage.content hook

https://gerrit.wikimedia.org/r/124064
Comment 11 Andre Klapper 2014-07-09 09:00:16 UTC
Patch was merged a while ago - is there more work left to do here (if yes: please reset the bug report status to NEW or ASSIGNED), or can you close this ticket as RESOLVED FIXED?
Comment 12 Bartosz Dziewoński 2014-07-09 10:52:50 UTC
I just tested and it still doesn't seem to work (PNG images are shown).
Comment 13 Derk-Jan Hartman 2014-07-09 11:24:04 UTC
For LivePreview, it depends on bug 24134 which isn't fixed yet, because I still need to finish https://gerrit.wikimedia.org/r/#/c/131346/. The patch that was merged was just one of the prerequisites. 

VE is a separate issue.

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


Navigation
Links