Open mjbvz opened 2 years ago
Parse the markdown:
[ref] [ref]: http://example.com
This results in the tree:
(document (paragraph (link (link_text (text)))) (paragraph (link (link_text (text))) (text) (uri_autolink (text))))
Notice how the link definition is not found
If I add a blank line the end of the file like so:
I instead see:
(document (paragraph (link (link_text (text)))) (link_reference_definition (link_label (text)) (link_destination (text))))
This seems to be the expected parsing
I have also created issue in treesitter repo.
seems like this is a different problem, sorry
Steps to reproduce
Parse the markdown:
Bug 🐛
This results in the tree:
Notice how the link definition is not found
Expected
If I add a blank line the end of the file like so:
I instead see:
This seems to be the expected parsing