markdown-viewer icon indicating copy to clipboard operation
markdown-viewer copied to clipboard

MathJax: Support for double backslash delimiters

Open vigneshwaran opened this issue 7 years ago • 6 comments
trafficstars

It doesn't support $O(n^2)$ and \(O(n^2)\) which works well in jupyter notebooks. I don't know where to update your code. Fix it soon.

vigneshwaran avatar May 30 '18 15:05 vigneshwaran

Inline expressions are supported, the above definitions work on my end. You probably have some other issue. If your markdown is hosted on GitHub for example, you have to enable the Disable Content Security Policy for that origin in Advanced Options.

simov avatar May 30 '18 15:05 simov

I have done disabling CSP. Now $inline$ works fine. But double backslash \\(inline\\) doesn't work well.

vigneshwaran avatar May 30 '18 16:05 vigneshwaran

reference for double backslash: https://github.com/cben/mathdown/wiki/math-in-markdown

vigneshwaran avatar May 30 '18 16:05 vigneshwaran

Currently only single backslash delimiters https://github.com/simov/markdown-viewer#mathjax are supported.

simov avatar May 30 '18 16:05 simov

Can you extend it?

vigneshwaran avatar May 30 '18 16:05 vigneshwaran

Can't remember exactly what the problem with the double backslash delimiters was, but I'll take a look.

simov avatar May 30 '18 17:05 simov