ToC inserting backslashes before LaTeX commands in headings #1228
Labels
Area: Math
Area: Table of contents
Pertaining to table of contents (TOC generation and detection, related heading operations).
Res: Duplicate
This issue or pull request already exists.
What's the problem
Using LaTeX in my headings is causing the extension to forcibly insert a backslash before the command (since I have the extension set to update ToC on save). This has the consequence of the ToC line rendering incorrectly as the command gets escaped. This goes for any LaTeX command.
Input Heading
## $\LaTeX$ and Stuff
Output ToC Line
What's the expected result
Input Heading
## $\LaTeX$ and Stuff
Output ToC line
How to reproduce
See above.
Other information
I'm not sure how to get my VS Code environment information.
The text was updated successfully, but these errors were encountered: