tree-sitter-grammars / tree-sitter-markdown

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

Invalid link reference definition highlight #52

Closed jupblb closed 1 year ago

jupblb commented 1 year ago

Describe the bug

Code example

-   [Link][]
-   [Link2][]

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

Expected behavior

Link reference definitions are highlighted as such. Commonmark reference allows up to three spaces of identation for them (src).

Actual behavior Screenshot 2022-08-04 at 16 38 12

MDeiml commented 1 year ago

~This seems to be a problem with there not being a newline at the end of the file rather than the indentation. Still a bug :)~

EDIT: It's both

jupblb commented 1 year ago

Thanks! :)