LaTeX and TeX highlighted incorrectly in Markdown
BearToCode opened this issue · comments
Davide commented
Validations
- Follow our Code of Conduct
- Read the Contributing Guide.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Describe the bug
LaTeX and TeX are highlighted incorrectly inside Markdown, they stop working after a \section
(and also other commands) is used.
Reproduction
Go to the playground, select Markdown and type the following (please unescape the backticks `)
\`\`\`latex
\begin{document}
\maketitle
\section{Hello World!} Highlighted correctly!
\end{document} No longer highlighted :(
\`\`\`
Result:
Contributes
- I am willing to submit a PR to fix this issue(I don't know how to fix it)
- I am willing to submit a PR with failing tests(Probably doesn't apply)
Davide commented
This issue is also present in vscode, so I guess the issue is with the TextMate grammar. What do you suggest is the best repo to move the issue to?
Anthony Fu commented
Please report upstream:
->
->
https://github.com/jlelong/vscode-latex-basics/blob/main/syntaxes/LaTeX.tmLanguage.json
Davide commented