tree-sitter-grammars / tree-sitter-markdown

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

Links are not recognised with parenthesis #55

Closed ErickChacon closed 1 year ago

ErickChacon commented 1 year ago

Describe the bug Links in the following format are not recognised [Link](https://google.com) at all.

Code example These links are not recognised.

[Link](https://google.com)
[Link2](https://gmail.com)

But these are recognised.

[Link]: https://google.com
[Link2]: https://gmail.com 

Expected behaviour I would expect [Link](https://google.com) is recognised as a link.

Actual behaviour It is not recognised as a link, so it is not highlighted.

MDeiml commented 1 year ago

It works for me, can you check that you are using the most recent version? There was #51 which was solved recently, maybe that fixed your problem too.

If not, what editor are you using this parser with?

ErickChacon commented 1 year ago

It was working for me as well, but after a recent update of nvim-treesitter and tree-sitter-markdown does not work anymore. I use neovim. Any suggestion to diagnose the problem?

MDeiml commented 1 year ago

A few things:

ErickChacon commented 1 year ago

Hi @MDeiml, thank you so much for your answer. I confirm that the problem was with markdown_inline. So :TSInstall markdown_inline solved the problem. Thank you so much for your work!