Closed pokey closed 5 months ago
ooh actually on closer inspection it looks like you don't even need a trailing paragraph; it suffices to just have a trailing newline on the final fence
...which leads me to realise this is a duplicate of https://github.com/tree-sitter-grammars/tree-sitter-markdown/issues/135
Did you check existing issues?
Tree-Sitter CLI Version, if relevant (output of
tree-sitter --version
)No response
Describe the bug
The final fenced delimiter
```
sometimes fails to be recognized as a(fenced_code_block_delimiter)
node.Note that it works correctly if there is a paragraph after the code block. For example, the following:
hello
parses to:
as expected
Steps To Reproduce/Bad Parse Tree
Input:
hello
Output:
Note the three
"`"
at the end, which should instead be a(fenced_code_block_delimiter)
node.Expected Behavior/Parse Tree
Repro
No response