tree-sitter-grammars / tree-sitter-markdown

Markdown grammar for tree-sitter
MIT License
375 stars 45 forks source link

`markdown_inline` latex injection #86

Closed kamalsacranie closed 1 year ago

kamalsacranie commented 1 year ago

markdown_inline injection and highlighting queries don't seem to work.

Code example

This is my math expression $\frac{1}{2}$.

@latex tree sitter highlighting should be applied to text inside \$\$s. Similarly, when you perform a query in TSPlayground for (latex_block) and capture it, there parser does not highlight anything.

image

However, if I put the block before the first heading, then the injection works but the query in TSPlayground does not.

image

Any ideas??

clason commented 1 year ago

What's your Neovim version?

clason commented 1 year ago

(duplicate of #83)

kamalsacranie commented 1 year ago

nvim version: NVIM v0.9.0-dev-2219+gf1816f9ee-dirty tree sitter commit: 9dd1b9c

clason commented 1 year ago

That's not a valid version. Try updating to the latest commit. (If you run the prerelease from master, you are expected to keep it updated constantly.)

kamalsacranie commented 1 year ago

This is the output I get form nvim and brew

image
clason commented 1 year ago

Irrelevant; your Neovim version is too old and you need to update it. If homebrew doesn't give you the latest HEAD version, then it's useless and you need to build from source yourself (or wait until Nvim 0.9 is released).