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

Incorrect highlighting when || is not followed by whitespace #61

Open
marshallward opened this issue Feb 12, 2021 · 0 comments
Open

Incorrect highlighting when || is not followed by whitespace #61

marshallward opened this issue Feb 12, 2021 · 0 comments

Comments

@marshallward
Copy link
Owner

(Re-posting on behalf of @philj56 ; original text below)


The following example shows the issue:

.. math::
|E| + 3
|E|+3

The first line highlights correctly, with the + 3 using normal maths highlighting. On the second line, the lack of whitespace causes the |E| highlighting to never end, and carries on through the whole document until another || pair followed by whitespace is found.

Edit: Actually this doesn't just apply to math mode, the same thing happens without the directive.

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