ValeKnappich
ValeKnappich

Reputation: 202

VS Code Latex Syntax in Markdown

I am currently writing a document with pandoc markdown and therefore use latex syntax.

How can I get Latex support (autocomplete, syntax highlighting, etc.) while writing in a .md file?

The Latex Workshop extension works fine for .tex files but I couldn't find an option to add file types.

Thanks in advance.

Upvotes: 10

Views: 18303

Answers (2)

Kato
Kato

Reputation: 528

After being troubled by this problem for a long time, I have found a solution.

  1. Install Latex Workshop Extension https://github.com/James-Yu/LaTeX-Workshop

  2. Switch the Language Mode (right corner in your vscode) of your markdown files from Markdown to markdown_latex_combined.

  3. Profit :D

Upvotes: 14

yzhang
yzhang

Reputation: 366

Markdown All in One provides LaTeX (in fact KaTeX) autocomplete, syntax highlighting.

Upvotes: 8

Related Questions