yzhang-gh / vscode-markdown

Markdown All in One
https://marketplace.visualstudio.com/items?itemName=yzhang.markdown-all-in-one
MIT License
2.93k stars 326 forks source link

GitHub does not render LaTeX in Markdown. Work around? #422

Closed admercs closed 5 years ago

admercs commented 5 years ago

What is the problem?

GitHub does not render LaTeX in Markdown. Will this package implement a workaround? I noticed that other packages have such.

How can I reproduce it?

Put a Markdown file containing LaTeX on GitHub.

Is there any error message in the console?

No.

yzhang-gh commented 5 years ago

To my knowledge, GitHub Flavored Markdown doesn't support math and there is no good workaround. (And I don't think there is any vscode extension can resolve that.)

A browser extension might help. I haven't checked.

admercs commented 5 years ago

The TeXify app can supposedly solve it for GitHub: https://github.com/apps/texify. There are also tools for VS Code, e.g.: https://marketplace.visualstudio.com/items?itemName=goessner.mdmath. Basically, I believe the latter exports to HTML.

yzhang-gh commented 5 years ago

If you accept HTML format, this extension also has a "print to HTML" command (then math should work well in the exported HTML).

admercs commented 5 years ago

Thank you!