shd101wyy / vscode-markdown-preview-enhanced

One of the "BEST" markdown preview extensions for Visual Studio Code
https://shd101wyy.github.io/markdown-preview-enhanced
Other
1.41k stars 170 forks source link

Latex packages? #150

Open Makogan opened 5 years ago

Makogan commented 5 years ago

Is there any support for latex packages?

neighthan commented 5 years ago

If you're using code blocks, any LaTeX packages should work fine. All that happens is the content of the latex code block is saved into a .tex file and then converted into a pdf and then an svg which is embedded into the generated HTML. The tex -> pdf conversion happens just the same way you'd compile a tex file outside of this extension (e.g. using pdflatex), so if you can compile tex files from the command line, you should be able to use those same files in code blocks in your markdown.