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?
javascript django mathjax
intelis
source share