Hello,
I'm trying to configure MathJax so that in the following document, the first equation is rendered inline, and the second in display mode:
<html>
…
<body class="body">
<p>Inline: <span class="mathjaxInline">\frac{1}{2}</span>.</p>
<p>Display:</p>
<div class="mathjaxDisplay">\frac{3}{4}</p>
</body>
</html>
I'm already using these options:
ignoreClass: "body";
processClass: "mathjax";
but it requires me to put $…$ and \[…\] around inline and display mode, respectively, instead of simply using two separate CSS classes.
I searched through the docs and the FAQ, and didn't find any option to tell MathJax that a class means inline, and another means display.
I know that I can use a <script type="math/tex;mode=display"> tag, but scripts parse special charactes like < and & differently, and in my case thse are already html-encoded. Is there a way to get the same effect with a simple span, without manually injecting the $…$ and \[…\] with a piece of JavaScript?