shikijs / shiki

A beautiful yet powerful syntax highlighter

Home Page:http://shiki.style/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LaTeX and TeX highlighted incorrectly in Markdown

BearToCode opened this issue · comments

Validations

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:

snippet

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)

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?

The grammar has been fixed and the changes were merged into vscode. They will automatically be picked up and used in the next released, right?

@antfu It's been 3 weeks, and the changes are yet to be published. Is any release planned soon?