I want to use AsciiMath to render math formula on my page. I followed the AsciiMath getting started and put the scripts in head tag:
<script>
MathJax = {
tex: {inlineMath: [['$', '$'], ['\\(', '\\)']]}
};
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.4/latest.js?config=AM_CHTML">
</script>
<script src="/statics/js/libs/ASCIIMathML.js"></script>
and this is my paragraph:
<p>some sample text `sqrt{3x-1}+(1+x)^2` some sample text $\sqrt{3x-1}+(1+x)^2$ some sample text</p>
it only renders sqrt{3x-1}+(1+x)^2
part which surrounds with backticks, although I changed the MathJax config to use $
as delimiters.
I'm not sure what am I missing here.