LaTeX math syntax interpreted as Markdown in IPython notebooks
In a Jupyter/IPython notebook, Markdown syntax seems to be applied even in dollar-enclosed LaTeX math expressions, which then fail to be recognized as such. For example, ```LaTeX It has intersection numbers $p^1_{11} = 0, p^2_{22} = 3$. ``` is rendered as ![gitlab-20170906](/uploads/751d1e1b46711f8628fcc3fd5a49b745/gitlab-20170906.png) when it should look like ![jupyter-20170906](/uploads/cafd1b90d26d311dcb523b36a5b4e782/jupyter-20170906.png) A notebook illustrating the issue (the same as for gitlab-ce#31910) is available at - https://gitlab.com/jaanos/jupyter-test/blob/master/Test.ipynb - https://git.lkrv.fri.uni-lj.si/janos/jupyter-test/blob/master/Test.ipynb Also, I've noted some more problems: - LaTeX math is not rendered in titles (i.e., lines starting with one or more `#`) - The presence of the `\operatorname` command in LaTex math makes the entire block disappear - Backslashes are doubled in both inline code and Markdown code blocks (but not in IPython code cells) Note that the behavior seems to have changed since gitlab-ce#30900 has been fixed (before, the math was rendered, making the `<em>` tags visible).
issue