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

Math Environment Breaks Table of Contents #1462

Open
Enough7 opened this issue Sep 18, 2024 · 0 comments
Open

Math Environment Breaks Table of Contents #1462

Enough7 opened this issue Sep 18, 2024 · 0 comments

Comments

@Enough7
Copy link

Enough7 commented Sep 18, 2024

What's the problem

Hey,
I just noticed a weird bug.
It will probably occur very rarely.

Given the following file:

# Regression
$$
\end{bmatrix*} \\
=
$$

will print this Table of Contents

- [Regression](#regression)
- [\\end{bmatrix\*} \\](#endbmatrix-)

What's the expected result

- [Regression](#regression)

How to reproduce

  1. Enter:
# Regression
$$
\end{bmatrix*} \\
=
$$
  1. Enter CTRL + P and run command markdown.extension.toc.create

Other information

If a new line is inserted after the \end{bmatrix*} \\ it works just fine.
Like:

# Regression
$$
\end{bmatrix*} \\

$$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant