Here鈥榮 an example, which works:
KaTeX is the future of math typesetting for the web.
KaTex vs. MathJax:

I've submitted a pull request #723 to ignore everything between $ or $$ to allow the use of KaTeX or MathJaX without the user having to worry about using _ or * in TeX formulas
Thanks a lot for your work, and sorry for my late...
I've tested your code in vscode and found a bug:

how to fix it? I know little about js.
Thanks for pointing out, I guess I should've made it a block-level grammar rule, I'll change the code and do so more extensive testing ...
I implemented this a while ago to use it with MathJax (I'll definitely have a glance at KaTeX since it looks promising). I use it regularly and I find it is quite stable.
https://github.com/chjj/marked/compare/master...Feder1co5oave:0341a2f
Basically you parse your markdown which includes $ ... $ (inline math) and $$ ... $$ (block level displaymath) tags, and then run MathJax.Process on the container you put your generated html code into.
would be nice to have it merged if no issues are found. (works fine for me so far)
Any updates?
Closing for now. Please see #956
See two targeted Markdown specifications.
Most helpful comment
would be nice to have it merged if no issues are found. (works fine for me so far)