# Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 35191 - Styles in math-tag are ignored when using MathJax
 Summary: Styles in math-tag are ignored when using MathJax
 Status: Product: RESOLVED WONTFIX MediaWiki extensions Unclassified Component: Math (Other open bugs) unspecified All All Low normal (vote) --- Brion Vibber (view as bug list) 31406 36144 make-mathjax-default Show dependency tree / graph

 Reported: 2012-03-13 09:15 UTC by Michael M. 2014-10-19 18:34 UTC (History) 7 users (show) fred.wang hartman.wiki laurent.denis mah mflaschen peter.krautzberger physik --- --- ---

Attachments
Proof of concept (234.58 KB, patch)
2012-06-02 13:27 UTC, Derk-Jan Hartman
Details

 Michael M. 2012-03-13 09:15:10 UTC a^2+b^2=c^2[/itex] comes without the border in MathJax. Brion Vibber 2012-03-14 22:52:03 UTC The style probably needs to be put on an outer that doesn't get replaced. Derk-Jan Hartman 2012-03-25 19:17:46 UTC Noticed the original HTML wasn't even outputting "style". Fixed this in Ia267aa211cb1bcb2023cd3f87bbc83c983ffc91f MathJax still removes the styling, will require another patch. Derk-Jan Hartman 2012-06-02 13:27:25 UTC Created attachment 10686 [details] Proof of concept OK, now the attributes have to be moved from the tex span to the jax math script node (this should happen in wiki2jax.js). Once they are there, MathJax needs to be adapted to copy the attributes AGAIN from the script node and apply them to the HTML formatted node. I did a quick mockup to verify that it can work (see attached patch), but it will require changes to MathJax and the problem is in merging and filtering the attributes that we need of course. That is something we have function for in MediaWiki, but those are not available inside MathJax right now. Derk-Jan Hartman 2012-09-07 17:56:21 UTC *** Bug 36144 has been marked as a duplicate of this bug. *** Matthew Flaschen 2013-06-05 05:10:20 UTC https://gerrit.wikimedia.org/r/#/c/64523/ is a proposed change to add safe mode. As currently configured, I believe this would block all inline styles, and classes that don't start with MJX-. See http://docs.mathjax.org/en/latest/options/Safe.html#configure-safe The safe mode change is (as it sounds like) intended to promote security (avoiding XSS), but it conflicts with this bug. physikerwelt 2013-12-01 11:41:25 UTC https://gerrit.wikimedia.org/r/#/c/90748/ physikerwelt 2014-10-19 18:34:05 UTC I guess the solution is "The style probably needs to be put on an outer that doesn't get replaced."

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