Microsoft/vscode

Wrong LaTeX highlighting in markdown

Open

#223,545 opened on Jul 24, 2024

View on GitHub
 (1 comment) (0 reactions) (1 assignee)TypeScript (10,221 forks)batch import
bughelp wantedmarkdown-ext

Repository metrics

Stars
 (74,848 stars)
PR merge metrics
 (Avg merge 11h 43m) (1,000 merged PRs in 30d)

Description

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.91.1
  • OS Version: macOS Sonoma 14.4.1

Steps to Reproduce:

  1. Create a md document and copy the following:

$\mu = e^{\mu_L + \sigma_L^2} \land \sigma_2 = (e^{\sigma_L^2} - 1) e^{2\mu_L + \sigma_L^2}$

$\mu = e^{\mu_L + \sigma_L^2}
 \land \sigma_2 = (e^{\sigma_L^2} - 1) e^{2\mu_L + \sigma_L^2}$

$$\mu = e^{\mu_L + \sigma_L^2}
 \land \sigma_2 = (e^{\sigma_L^2} - 1) e^{2\mu_L + \sigma_L^2}$$

- $\mu = e^{\mu_L + \sigma_L^2} \land \sigma_2 = (e^{\sigma_L^2} - 1) e^{2\mu_L + \sigma_L^2}$

- $\mu = e^{\mu_L + \sigma_L^2}
 \land \sigma_2 = (e^{\sigma_L^2} - 1) e^{2\mu_L + \sigma_L^2}$

- $$\mu = e^{\mu_L + \sigma_L^2}
 \land \sigma_2 = (e^{\sigma_L^2} - 1) e^{2\mu_L + \sigma_L^2}$$

x $\mu = e^{\mu_L + \sigma_L^2} \land \sigma_2 = (e^{\sigma_L^2} - 1) e^{2\mu_L + \sigma_L^2}$

x $\mu = e^{\mu_L + \sigma_L^2}
 \land \sigma_2 = (e^{\sigma_L^2} - 1) e^{2\mu_L + \sigma_L^2}$

x $$\mu = e^{\mu_L + \sigma_L^2}
 \land \sigma_2 = (e^{\sigma_L^2} - 1) e^{2\mu_L + \sigma_L^2}$$
  1. This is how it looks:

Contributor guide