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 behaviour in latex documentation feature #539

Open
s3midetnov opened this issue Jul 24, 2024 · 1 comment
Open

Incorrect behaviour in latex documentation feature #539

s3midetnov opened this issue Jul 24, 2024 · 1 comment
Labels

Comments

@s3midetnov
Copy link

s3midetnov commented Jul 24, 2024

If one writes latex code that contains "{-" substring, the code analyser thinks that it opens another comment parenthesis. In reality it can be a part of latex code symbolising inverse elements in an algebraic structure.

An example of such behaviour is the line
{- | $ f^{-1}g$ -}. It is treated as an open (and not closed) comment line. In the meantime {- | $ f^{-1}g $ -}-} is treated as s closed comment line.

P.S. if one writes {- | $ f^{ -1}g $ -} then it is correct latex code with the same behaviour as previously and it is being treated normally, as a closed comment line.

@sxhya
Copy link
Collaborator

sxhya commented Jul 24, 2024

We've stumbled upon this problem earlier and we decided that at the moment we do not want to modify the parser. Instead it is recommended to use the workaround you proposed at the end of your message.

@sxhya sxhya added minor usability-problem Usability Problem labels Jul 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants