Inline MathJax does not work with PageDown

I am trying to implement PageDown and MathJax in my Django . I followed insctructions here .
My code works correctly, and Mathjax works as it should, except that it does not display inline equations.

I added all the necessary files ( Markdown Converter , Markdown Sanitizer , Markdown Editor , Mathjax and Mathjax editing - as described in the tutorial)

I initialize plugins with code:

 var converter1 = Markdown.getSanitizingConverter(); converter1.hooks.chain("preBlockGamut", function (text, rbg) { return text.replace(/^ {0,3}""" *\n((?:.*?\n)+?) {0,3}""" *$/gm, function (whole, inner) { return "<blockquote>" + rbg(inner) + "</blockquote>\n"; }); }); var editor1 = new Markdown.Editor(converter1); var postfix = ""; euni.mathjaxEditing.prepareWmdForMathJax(editor1, postfix, [["$", "$"], ["\\\\(","\\\\)"]]); editor1.run(); 

How can I get Mathjax to display inline equations?
As mentioned above, a thing like $$2x+5$$ works as expected?

+8
javascript django mathjax
source share
1 answer

You need to enable the built-in equations:

 MathJax.Hub.Config({ tex2jax: { inlineMath: [ ['$','$'], ["\\(","\\)"] ], processEscapes: true } 

});

See this earlier post: https://tex.stackexchange.com/questions/27633/mathjax-inline-mode-not-rendering

0
source share

All Articles