bug: image markdown incorrectly parsed when more than 8 images are on adjacent lines #186
Open
2 tasks done
Labels
bug
Something isn't working
Did you check existing issues?
Tree-Sitter CLI Version, if relevant (output of
tree-sitter --version
)No response
Describe the bug
Tree-sitter parses an image link

as aninline_link
when the image link is followed by 8 more images. 8 images in a row will parse correctly. The first image will be parsed incorrect if a 9th image is added. If a 10th image is added the 2nd image will be parsed incorrectly, etc. Breaking the set of images up into groups of 8 or less by adding empty lines results in a correct tree.I am not a tree-sitter user save that I am an nvim user. I discovered this using the nvim
InspectTree
command when trying to figure out a side effect of this bug.Steps To Reproduce/Bad Parse Tree
Create a markdown file containing 9 or more image links
Parse the file
Inspect the resulting tree.
Expected Behavior/Parse Tree
This is the result when parsing a file containing 9 image lines.
The input file contained these lines:
Repro
See above.
The text was updated successfully, but these errors were encountered: