You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have read all the tree-sitter docs if it relates to using the parser
I have searched the existing issues
Describe the bug
When I edit a markdown file, latex injections appear multiple times in the AST shown by :InspectTree. I'm not sure if this is a bug, but it seems weird and I wanted to report it.
Steps To Reproduce/Bad Parse Tree
Have nvim-treesitter plugin with markdown* and latex parsers installed
:set ft=markdown
paste
some text
$\alpha = 1$
:InspectTree
Result: The inline math is present multiple times in the AST, specifically it is present where the cursor is in the picture below. If there are n paragraphs before the inline math in the markdown file, the inline math is is present n+1 times in the AST.
I think this might be an issue with the neovim injection logic, tree-sitter parse gives the correct AST (at least when looking at just the (latex_block) nodes)
Did you check existing issues?
Describe the bug
When I edit a markdown file, latex injections appear multiple times in the AST shown by
:InspectTree
. I'm not sure if this is a bug, but it seems weird and I wanted to report it.Steps To Reproduce/Bad Parse Tree
:set ft=markdown
:InspectTree
Result: The inline math is present multiple times in the AST, specifically it is present where the cursor is in the picture below. If there are
n
paragraphs before the inline math in the markdown file, the inline math is is presentn+1
times in the AST.Additional Info
Expected Behavior/Parse Tree
I would expect the inline math to show only once in the AST.
The text was updated successfully, but these errors were encountered: