instant-markdown/vim-instant-markdown

How to invoke mathjax?

flossgeek opened this issue · 5 comments

I have let g:instant_markdown_mathjax = 1 set in my .vimrc file. However, I can't manage to trigger mathjax formatting. Both \(...\) and $$...$$ are without any result. How do I tackle this?

Well, I think I found the problem already. I was first using the smdv python server, which had some quirks. Now I'm using the npm package of instant-markdown-d, which works much better and math is also displayed correctly.
Any clue on why smdv doesn't work? Is it not as well supported as instant-markdown-d?

smdv relies on pandoc. You can check if it is available in your machine.

Yes, exactly. Pandoc is installed on my machine (by the package manager), but formulas aren't rendered as with the instant-markdown-d server.

Strange. Perhaps smdv's pandoc call is missing some flags. I would recommend sorting this out at smdv's issue tracker.