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

Equals sign within LaTex block causes previous line to be rendered in Table Of Contents #1483

Open
christopherMills opened this issue Nov 21, 2024 · 0 comments

Comments

@christopherMills
Copy link

What's the problem

Seems to be a parsing error.

When using LaTex, even when clearly demarcated by $$ on new lines, snippets of that LaTex block end up in the auto-generated ToC if (and seemingly only if) there is a = on its own line. The line that ends up in the ToC is the line immediately before the = in the LaTex block.

What's the expected result

LaTex expressions should not be picked up in the ToC regardless of what's inside them since they are demarcated by $$.

How to reproduce

Write a LaTex block that has a = on its own line. Generate the ToC. The line above the = will be inserted into the ToC.

Other information

I am attaching a test MarkDown file that clearly reproduces this bug.
test.md

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