Mediawiki mathjax must use escape $ x $

I use MediaWiki with MathJax because many pages have mathematical equations. But on some pages, I also need to display the line $ x $ as is.

Is there a way to avoid $ x $ so that it doesn't call MathJax and display as italic x?

MathJax supports \ $ to avoid $ in the expression, but this does not work with the initial $ (of course).

+5
source share
1 answer

If you set processEscapes:truein tex2jaxyour configuration section , you can avoid the initial dollar sign so that you can type $x$. Alternatively, you can use <span class="tex2jax_ignore">...</span>around text that you do not want to handle MathJax. It might be easier to use <code>...</code>around $x$, since MathJax does not process text inside blocks of code.

David

+7
source

All Articles