mediawiki-extensions-Math/mathoid/index.html
Moritz Schubotz 12a45cff1b Adding mathoid as tex to MathML and SVG renderer
Uses nodejs to call phantomjs that renders the
tex input using MathJax and returns a json object
that includes both the SVG and the MathML
representation.

The project was forked from
https://github.com/agrbin/svgtex.

Co-Authored-By: Gabriel Wicke <gwicke@wikimedia.org>
Co-Authored-By: Moritz Schubotz <wiki@physikerwelt.de>
Change-Id: Ie5f24006c3aacd8f61f48ca275acd63a418d7529
2013-10-04 17:03:34 -07:00

26 lines
715 B
HTML

<!--
This file is loaded from main.js (phantomjs).
-->
<html>
<head>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
jax: ["input/TeX","output/SVG","output/NativeMML"],
showProcessingMessages: false,
messageStyle: "none",
tex2jax: {
inlineMath: [["$","$"],["\\(","\\)"]]
}
});
</script>
<script type="text/javascript"
src="../modules/MathJax/MathJax.js?config=TeX-AMS-MML_SVG-full">
<!-- src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_SVG-full"> -->
</script>
<script type="text/javascript" src="engine.js"></script>
</head>
<body>
<div id="math">${}$</div>
</body>
</html>