Skip to content

Conversation

@Rishi1878
Copy link

This PR addresses issue #272922 by preventing auto-closing of < > inside LaTeX blocks in Markdown.

Changes:

  • Modified language-configuration.json to include "latex" in the notIn array for < > auto-closing.
  • Scoped LaTeX blocks in markdown.tmLanguage.json using a new markup.math.latex.markdown rule.
  • Verified that < is no longer auto-closed inside $<a + b>$ and $$<x = y>$$.

Testing:

Tested in GitHub Codespaces using a Markdown file with LaTeX blocks. Confirmed correct token scopes and behavior.
Let me know if further adjustments are needed!

@Rishi1878 Rishi1878 force-pushed the fix-latex-angle-brackets branch from c9cea40 to a855b8e Compare October 24, 2025 12:38
@Rishi1878
Copy link
Author

@microsoft-github-policy-service agree

@RedCMD
Copy link
Contributor

RedCMD commented Oct 24, 2025

but this doesn't work?

only string and comment are supported
image

and now the language assignment is broken
image
should be latex not markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants