I'm using MathJax to display math formulas in my website. And now, I want to use AsciiMath too. The problem is, when I'm using AsciiMath delimiters `...`
instead of MathJax delimiters $...$
it doesn't work.
This is my JS code (works on r.e. with MathJax delimiters):
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
tex2jax: {
inlineMath: [["$","$"],["\\(","\\)"]],
displayMath: [['$$','$$'], ["\\[","\\]"]]
},
asciimath2jax: {
delimiters: [['\\$','\\$'], ['`','`']]
}
});
</script>
So, if I write in my HTML <p>$x^2$</p>
it displays: Click to view img.
But, if I write <p>`x^2`</p>
the display is: Click to view img.
Also, I'm using this CDN in the bottom of my HTML code:
<script src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_HTML-full"></script>
NOTE that if I put it in the top of my HTML code, doesn't work either.