mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Math
synced 2024-12-24 05:13:10 +00:00
12a45cff1b
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
26 lines
715 B
HTML
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>
|