Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ToC inserting backslashes before LaTeX commands in headings #1228

Closed
AzureArmageddon opened this issue Jan 26, 2023 · 1 comment
Closed

ToC inserting backslashes before LaTeX commands in headings #1228

AzureArmageddon opened this issue Jan 26, 2023 · 1 comment
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.

Comments

@AzureArmageddon
Copy link

AzureArmageddon commented Jan 26, 2023

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

- [$\\LaTeX$ and Stuff](latex-and-stuff)

What's the expected result

Input Heading

## $\LaTeX$ and Stuff

Output ToC line

- [$\LaTeX$ and Stuff](latex-and-stuff)

How to reproduce

See above.

Other information

I'm not sure how to get my VS Code environment information.

@yzhang-gh
Copy link
Owner

Thanks for the feedback.

This is a known bug due to a fundamental change in this extension. I agree with you that the LaTeX commands should not be escaped. However, I haven't got enough time to look into it so it remains until now.

Let's track this in #903.

@yzhang-gh yzhang-gh added Res: Duplicate This issue or pull request already exists. Area: Table of contents Pertaining to table of contents (TOC generation and detection, related heading operations). Area: Math labels Jan 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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.
Projects
None yet
Development

No branches or pull requests

2 participants