q2a-markdown-editor icon indicating copy to clipboard operation
q2a-markdown-editor copied to clipboard

A markdown editor bug? cannot show corrected formula with mathjax

Open johnbao6 opened this issue 8 years ago • 2 comments

I use markdown editor and mathjax to write math formula, sometimes it cannot show corrected form, here is the example:

$$(A_2)\int_{-\infty}^{+\infty} dx $$

Is this a markdown editor's bug?

When I use Basic Editor,it is OK.

Furthermore, in the Preview of markdown editor, the formula shows OK, but when I finish the editor, the answer shows problem.

johnbao6 avatar Dec 24 '16 05:12 johnbao6

Now I am pretty sure the reason is two underscore _, but I have no idea how to find a simple way to solve it.

johnbao6 avatar Dec 24 '16 06:12 johnbao6

I think that underscores make something italic in Markdown so there could be a conflict there. Not sure there's anything I can do in the plugin to solve that. In your mathjax you can try "escaping" the underscores by putting \ before each one.

svivian avatar Jan 04 '17 13:01 svivian