Commit 71ab971c by Adam Palay

Revert "Lms should be independent of mathjax"

This reverts commit 4a086f54.
parent b50e004b
...@@ -6,38 +6,33 @@ ...@@ -6,38 +6,33 @@
## This enables ASCIIMathJAX, and is used by js_textbox ## This enables ASCIIMathJAX, and is used by js_textbox
<%def name="mathjaxConfig()"> %if mathjax_mode is not Undefined and mathjax_mode == 'wiki':
%if mathjax_mode is not Undefined and mathjax_mode == 'wiki': <script type="text/x-mathjax-config">
MathJax.Hub.Config({ MathJax.Hub.Config({
tex2jax: {inlineMath: [ ['$','$'], ["\\(","\\)"]], tex2jax: {inlineMath: [ ['$','$'], ["\\(","\\)"]],
displayMath: [ ['$$','$$'], ["\\[","\\]"]]} displayMath: [ ['$$','$$'], ["\\[","\\]"]]}
}); });
%else: HUB = MathJax.Hub
MathJax.Hub.Config({ </script>
tex2jax: { %else:
inlineMath: [ <script type="text/x-mathjax-config">
["\\(","\\)"], MathJax.Hub.Config({
['[mathjaxinline]','[/mathjaxinline]'] tex2jax: {
], inlineMath: [
displayMath: [ ["\\(","\\)"],
["\\[","\\]"], ['[mathjaxinline]','[/mathjaxinline]']
['[mathjax]','[/mathjax]'] ],
] displayMath: [
} ["\\[","\\]"],
}); ['[mathjax]','[/mathjax]']
%endif ]
MathJax.Hub.Configured(); }
window.HUB = MathJax.Hub; });
</%def> HUB = MathJax.Hub
</script>
%endif
<!-- This must appear after all mathjax-config blocks, so it is after the imports from the other templates. <!-- This must appear after all mathjax-config blocks, so it is after the imports from the other templates.
It can't be run through static.url because MathJax uses crazy url introspection to do lazy loading of It can't be run through static.url because MathJax uses crazy url introspection to do lazy loading of
MathJax extension libraries --> MathJax extension libraries -->
<script type="text/javascript"> <script type="text/javascript" src="https://cdn.mathjax.org/mathjax/2.4-latest/MathJax.js?config=TeX-MML-AM_HTMLorMML-full"></script>
;(function (require) {
'use strict';
require(['mathjax'], function() {
${mathjaxConfig()}
});
}).call(this, require || RequireJS.require);
</script>
...@@ -67,7 +67,6 @@ ...@@ -67,7 +67,6 @@
"ova": 'js/vendor/ova/ova', "ova": 'js/vendor/ova/ova',
"catch": 'js/vendor/ova/catch/js/catch', "catch": 'js/vendor/ova/catch/js/catch',
"handlebars": 'js/vendor/ova/catch/js/handlebars-1.1.2', "handlebars": 'js/vendor/ova/catch/js/handlebars-1.1.2',
"mathjax": 'https://cdn.mathjax.org/mathjax/2.4-latest/MathJax.js?config=TeX-MML-AM_HTMLorMML-full'
// end of files needed by OVA // end of files needed by OVA
}, },
shim: { shim: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment