Vscode: Support mathJax formula preview in markdown

Created on 19 May 2016  ·  8Comments  ·  Source: microsoft/vscode

Steps to Reproduce:

markdown code as follows can't preview:

LaTeX 公式

可以创建行内公式,例如 $\Gamma(n) = (n-1)!\quad\forall n\in\mathbb N$。或者块级公式:
$$ x = \dfrac{-b \pm \sqrt{b^2 - 4ac}}{2a} $$

*extension-candidate feature-request help wanted markdown

Most helpful comment

see ...
Markdown+Math

All 8 comments

@kieferrm maybe a case for an extension for the markdown extension?

maybe this helps those people who want mathjax.
https://gist.github.com/3846masa/cde99a18a8d7ad225cf7

simply use regex to find the mathjax block and render. It could be total cool to include as an extension. Only works before version 1.30.

BTW. FYI https://github.com/markdown-it/markdown-it/issues/33

Please use KaTeX instead of MathJax.

see ...
Markdown+Math

@bpasero, @kieferrm maybe you could merge the functionality of the repo linked by @goessner above into the default package?

@goessner: Your repo is top trending repo nr. 6 on Github at the moment. Maybe you could link to this issue so people can vote for it with a :+1: by reacting to the issue description.

MathJAX is not something we want to add to our core markdown preview extension, but we still do want to support extending the markdown preview in this way. To allow this, I've implemented a proposal for markdown extensions in VSCode 1.11: #22916

This prototype extension demonstrates enabling katex in the preview for example: https://github.com/mjbvz/vscode-markdown-katex

If someone would be interested in creating a prototype mathjax extension using the proposed API, please let me know. The katex extension is probably a good starting point. The API is also still a WIP, so any feedback on it would be greatly appreciated

// FYI @snyang

With the markdown extensions support this is now an extension candidate.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

v-pavanp picture v-pavanp  ·  3Comments

biij5698 picture biij5698  ·  3Comments

villiv picture villiv  ·  3Comments

curtw picture curtw  ·  3Comments

shanalikhan picture shanalikhan  ·  3Comments