vim-preview
vim-preview copied to clipboard
MathJax support
You may add these lines to autoload/preview.vim file
247
248 <script type="text/javascript"
249 src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
250 </script>
to allow (inline formula) and [diplay formula] to be translated in latex using MathJax.
Just to clarify this, you need to type \\(inline math\\) or \\[display math\\] because RedCarpet (and most other renderers) requires backslashes to be escaped. The result is that when rendered as html, you get \(inline math\) or \[display math\], which MathJax then converts.