vim-preview icon indicating copy to clipboard operation
vim-preview copied to clipboard

MathJax support

Open verga opened this issue 10 years ago • 1 comments

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.

verga avatar Jan 03 '15 10:01 verga

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.

tobanw avatar Oct 06 '15 01:10 tobanw