tree-sitter-grammars / tree-sitter-markdown

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

`latex` inline highlighting doesn't work properly in markdown file #83

Closed schardev closed 1 year ago

schardev commented 1 year ago

If a markdown file has a heading, then it doesn't highlight inline latex line. Probably due to incorrect nodes been parsed(?).

Example Snippet:

## Heading
$\frac{{x}{y}^m}$

see https://github.com/nvim-treesitter/nvim-treesitter/issues/4349 for more info

clason commented 1 year ago

Turns out this is an issue with Neovim injections, which has just been fixed.