Closed mtoohey31 closed 1 year ago
Thanks for reporting this. There are a lot of problems with this kind of nested code spans, emphasis, links, ...
I don't yet know how to solve this problem, since all of it relies on dynamic precedence which is hard to get right, but I'll see what I can come up with.
This is fixed with #90
Hello! I ran into the following edge case with a combination of
shortcut_link
andcode_span
:...is parsed as:
...when it should be:
The smallest example I could come up with is:
...which is parsed as:
...instead of:
This is a very "edge case" kind of scenario, but I figured I should mention it.
PS: thanks for your work on this, I was waiting for a tree sitter markdown grammar and I attempted to write one myself a few months ago but gave up cause I couldn't figure it out 🤣, so I appreciate the effort this must've taken.