tree-sitter-latex icon indicating copy to clipboard operation
tree-sitter-latex copied to clipboard

LaTeX: _\text{} not recognized properly

Open ChrisGVE opened this issue 3 months ago • 1 comments
trafficstars

While using markview.nvim, I realized that when writing something like $H_\text{max}$ in markdown, the \text{} was not correctly (?) parsed, giving the result:

Image

Even when trying something like $H_{\text{max}}$, the result is even worse.

I was suggested to raise an issue for tree-sitter-latex for that problem.

ChrisGVE avatar Aug 17 '25 08:08 ChrisGVE

Image

Looks perfectly fine to me, so the issue must be with whatever queries you are using for this conceal (which are not part of this project).

clason avatar Aug 17 '25 09:08 clason