Microsoft/vscode

[Markdown] Do not auto close angle brackets inside latex blocks

Open

#272,922 建立於 2025年10月23日

在 GitHub 查看
 (6 留言) (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?: No

This issue is part of the bundled markdown-basics extension.

  • VS Code Version: 1.105.0
  • OS Version: Windows 11 24H2 26100.6899

Steps to Reproduce:

  1. Open an arbitary markdown file
  2. Type a < inside $ ... $ or $$ ... $$
  3. A > will be added as part of the auto-closing
  4. However, HTML tags are not allowed inside latex blocks, and when people use latex blocks, mostly they will use < as less than meaning instead of left angle bracket, so it should not be auto-closed

貢獻者指南