tree-sitter-grammars / tree-sitter-markdown

Markdown grammar for tree-sitter
MIT License
411 stars 52 forks source link

bug: text ending with numbers in underscore block is not italic #151

Open litoj opened 4 months ago

litoj commented 4 months ago

Did you check existing issues?

Tree-Sitter CLI Version, if relevant (output of tree-sitter --version)

No response

Describe the bug

text like _hello1_ doesn't get recognized parsed as italic block, but *hello1* does.

Steps To Reproduce/Bad Parse Tree

I used neovim in markdown file with _hi1_ written in it.

Expected Behavior/Parse Tree

I would expect the contents to be matched as an italic block.

Repro

I'm sorry, I have no experience with the tree-sitter cli, let alone the library.