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

latex highlight error #1020

Closed
yang-jiaye opened this issue Oct 12, 2021 · 1 comment
Closed

latex highlight error #1020

yang-jiaye opened this issue Oct 12, 2021 · 1 comment
Labels
Area: Editor theming Decorations and highlighting in editor. Area: Math Res: Duplicate This issue or pull request already exists.

Comments

@yang-jiaye
Copy link

yang-jiaye commented Oct 12, 2021

Problem

The latex highlight doesn't display when using "$$...$$" grammar

How to reproduce

I test this error and find that it has 2 trigger condition:

  • There has existed a "$$...$$" structure before
  • In present "$$...$$" structure, the equation is right next to the first "$$" symbol.

For example

    $$
    \frac{a}{b}=1
    $$
    
    $$
    \frac{a}{b}=2
    $$

    $$
    
    \frac{a}{b}=3
    $$

In this exmaple, the first "$$...$$" structure will show highlight normally, but the second structure will not show highlight, unless you rewrite it as the third structure. The figure is as follows.

image

Environment

my extension version is 3.4.0 (2020.11.14)
my vscode about is as follows:

版本: 1.61.0 (user setup)
提交: ee8c7def80afc00dd6e593ef12f37756d8f504ea
日期: 2021-10-07T18:13:09.652Z
Electron: 13.5.1
Chrome: 91.0.4472.164
Node.js: 14.16.0
V8: 9.1.269.39-electron.0
OS: Windows_NT x64 10.0.19042

@yang-jiaye yang-jiaye changed the title latex latex highlight error Oct 12, 2021
@yang-jiaye yang-jiaye reopened this Oct 12, 2021
@yzhang-gh
Copy link
Owner

Thanks. Please see #1008.

@yzhang-gh yzhang-gh added Area: Math Res: Duplicate This issue or pull request already exists. Area: Editor theming Decorations and highlighting in editor. labels Oct 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Editor theming Decorations and highlighting in editor. Area: Math Res: Duplicate This issue or pull request already exists.
Projects
None yet
Development

No branches or pull requests

2 participants