Hi,
I have set-up a wiki at http://wiki.x2592.com and installed (among other things) the MathJax extension (https://www.mediawiki.org/wiki/Extension:MathJax). (I originally tried with the Math extension, but did not manage to get it working, despite the fact that all the prerequisites seem to be met.)
MathJax is displaying Tex-encoded equations OK, but not MathML-encoded equations. The greater-than and less-than characters in MathML tags seem to be being converted to the HTML entities &ls and >.
I'm working with a local git checkout of the MathJax package (although the results were identical using their CDN-delivered version), and a one-week-old git checkout of MediaWiki and the extensions repository. The MW MathJax is the version available as of 7 days ago, too.
The invocation string used to call MathJax is:
http://wiki.x2592.com/MathJax/MathJax.js?config=TeX-AMS-MML_HTMLorMML
Examples of equations and other supported content can be seen on the main page of http://wiki.x2592.com, showing the problem, and the page is currently enabled for editing for anyone that feels like dabbling.
It might be useful to add that I started a thread about this in the MathJax discussion group:
https://groups.google.com/forum/#!topic/mathjax-users/ZSVVy0Gs0nY
Is anyone able to help me troubleshoot this and get MathML displaying OK?
Many TIA if so, :-)
-- Dave
Hello Dave. Can you type <nomathjax> before any MathML-encoded equation, and </nomathjax> just after?
I had similar problems loading generators of figures at TORI; I do not use MathMP, but some other codes, that are not supposed to be interpreted with MathJax, require this.
=============================== On Sat, 7 Sep 2013, me@x2592.com wrote:
Hi,
I have set-up a wiki at http://wiki.x2592.com and installed (among other things) the MathJax extension (https://www.mediawiki.org/wiki/Extension:MathJax). (I originally tried with the Math extension, but did not manage to get it working, despite the fact that all the prerequisites seem to be met.)
MathJax is displaying Tex-encoded equations OK, but not MathML-encoded equations. The greater-than and less-than characters in MathML tags seem to be being converted to the HTML entities &ls and >.
I'm working with a local git checkout of the MathJax package (although the results were identical using their CDN-delivered version), and a one-week-old git checkout of MediaWiki and the extensions repository. The MW MathJax is the version available as of 7 days ago, too.
The invocation string used to call MathJax is:
http://wiki.x2592.com/MathJax/MathJax.js?config=TeX-AMS-MML_HTMLorMML
Examples of equations and other supported content can be seen on the main page of http://wiki.x2592.com, showing the problem, and the page is currently enabled for editing for anyone that feels like dabbling.
It might be useful to add that I started a thread about this in the MathJax discussion group:
https://groups.google.com/forum/#!topic/mathjax-users/ZSVVy0Gs0nY
Is anyone able to help me troubleshoot this and get MathML displaying OK?
Many TIA if so, :-)
-- Dave
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Hi Dmitrii,
I tried this just now, but the MathML still does not get displayed. Actually, I want the MathML to be processed by MathJax, and am trying to solve why it is not...
Thanks for the advice. ;-)
-- Dave
On 2013-09-08 12:37, Dmitrii Kouznetsov wrote:
Hello Dave. Can you type
<nomathjax> before any MathML-encoded equation, and </nomathjax> just after?
I had similar problems loading generators of figures at TORI; I do not use MathMP, but some other codes, that are not supposed to be interpreted with MathJax, require this.
=============================== On Sat, 7 Sep 2013, me@x2592.com wrote:
Hi,
I have set-up a wiki at http://wiki.x2592.com and installed (among other things) the MathJax extension (https://www.mediawiki.org/wiki/Extension:MathJax). (I originally tried with the Math extension, but did not manage to get it working, despite the fact that all the prerequisites seem to be met.)
MathJax is displaying Tex-encoded equations OK, but not MathML-encoded equations. The greater-than and less-than characters in MathML tags seem to be being converted to the HTML entities &ls and >.
I'm working with a local git checkout of the MathJax package (although the results were identical using their CDN-delivered version), and a one-week-old git checkout of MediaWiki and the extensions repository. The MW MathJax is the version available as of 7 days ago, too.
The invocation string used to call MathJax is:
http://wiki.x2592.com/MathJax/MathJax.js?config=TeX-AMS-MML_HTMLorMML
Examples of equations and other supported content can be seen on the main page of http://wiki.x2592.com, showing the problem, and the page is currently enabled for editing for anyone that feels like dabbling.
It might be useful to add that I started a thread about this in the MathJax discussion group:
https://groups.google.com/forum/#!topic/mathjax-users/ZSVVy0Gs0nY
Is anyone able to help me troubleshoot this and get MathML displaying OK?
Many TIA if so, :-)
-- Dave
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
On 8 sep. 2013, at 14:10, me@x2592.com wrote:
Hi Dmitrii,
I tried this just now, but the MathML still does not get displayed. Actually, I want the MathML to be processed by MathJax, and am trying to solve why it is not...
Thanks for the advice. ;-)
You can't, everything you enter into the textarea of a wikipage, is parsed by the wikicode parser. The wikicode parser has very strict sanitation rules, by default it only allows wikicode and a whitelisted set of HTML elements. Codes that are not recognized as html are escaped, so that they cannot harm the reader. You can add more whitelisted HTML elements, but of course MathML is not HTML, or enable $wgRawHtml, but the latter really is a bad idea on a public wiki.
To summarize, MediaWiki math tag only allows tex (or rather texvc) as input, it does not allow MathML input. I'm not aware of an extension that allows inserting MathML fragments into wikicode, if it is out there somwhere, I wouldn't really trust it security wise :)
DJ
On 2013-09-08 12:37, Dmitrii Kouznetsov wrote:
Hello Dave. Can you type
<nomathjax> before any MathML-encoded equation, and </nomathjax> just after? I had similar problems loading generators of figures at TORI; I do not use MathMP, but some other codes, that are not supposed to be interpreted with MathJax, require this. =============================== On Sat, 7 Sep 2013, me@x2592.com wrote: > Hi, > I have set-up a wiki at http://wiki.x2592.com and installed (among other things) the MathJax extension (https://www.mediawiki.org/wiki/Extension:MathJax). (I originally tried with the Math extension, but did not manage to get it working, despite the fact that all the prerequisites seem to be met.) > MathJax is displaying Tex-encoded equations OK, but not MathML-encoded equations. The greater-than and less-than characters in MathML tags seem to be being converted to the HTML entities &ls and >. > I'm working with a local git checkout of the MathJax package (although the results were identical using their CDN-delivered version), and a one-week-old git checkout of MediaWiki and the extensions repository. The MW MathJax is the version available as of 7 days ago, too. > The invocation string used to call MathJax is: > http://wiki.x2592.com/MathJax/MathJax.js?config=TeX-AMS-MML_HTMLorMML > Examples of equations and other supported content can be seen on the main page of http://wiki.x2592.com, showing the problem, and the page is currently enabled for editing for anyone that feels like dabbling. > It might be useful to add that I started a thread about this in the MathJax discussion group: > https://groups.google.com/forum/#!topic/mathjax-users/ZSVVy0Gs0nY > Is anyone able to help me troubleshoot this and get MathML displaying OK? > Many TIA if so, :-) > -- > Dave > _______________________________________________ > MediaWiki-l mailing list > MediaWiki-l@lists.wikimedia.org > https://lists.wikimedia.org/mailman/listinfo/mediawiki-l _______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org