Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MathJax support #39

Open
verga opened this issue Jan 3, 2015 · 1 comment
Open

MathJax support #39

verga opened this issue Jan 3, 2015 · 1 comment

Comments

@verga
Copy link

verga commented Jan 3, 2015

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.

@tobanw
Copy link

tobanw commented Oct 6, 2015

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants