javascript - Inline MathJax not working with PageDown -
i'm trying implement pagedown , mathjax in django application. followed insctructions here.
code working , mathjax running should, except doesn't render inline equations.
i've added required files(markdown converter, markdown sanitizer, markdown editor, mathjax , mathjax editing - as described in tutorial)
i'm initializing plugins 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 mathjax render inline equations?
mentioned above, thing $$2x+5$$ work expected?
you have enable inline equations:
mathjax.hub.config({ tex2jax: { inlinemath: [ ['$','$'], ["\\(","\\)"] ], processescapes: true } });
see older post: https://tex.stackexchange.com/questions/27633/mathjax-inline-mode-not-rendering
Comments
Post a Comment