Microsoft/vscode

Wrong LaTeX highlighting in markdown

Open

#223,545 创建于 2024年7月24日

在 GitHub 查看
 (1 评论) (0 反应) (1 负责人)TypeScript (10,221 fork)batch import
bughelp wantedmarkdown-ext

仓库指标

Star
 (74,848 star)
PR 合并指标
 (平均合并 11小时 43分钟) (30 天内合并 1,000 个 PR)

描述

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:

贡献者指南