tree-sitter-grammars / tree-sitter-markdown

Markdown grammar for tree-sitter
MIT License
374 stars 45 forks source link

bug: README: inline latex is not listed in Extensions #150

Open jmtd opened 1 month ago

jmtd commented 1 month ago

Did you check existing issues?

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

v0.22.6 (via nvim 0.10.0)

Describe the bug

The markdown parser is described as "…CommonMark Spec, but some extensions…are also included.".

One of those extensions must be Inline latex, as pictured in the example screenshot. This isn't part of CommonMark, but is also not listed in the Extensions list.

It'd be nice to have a linked spec for the inline latex, to (easily) understand what it can and can't do. Is it from Pandoc?

Thanks!

Steps To Reproduce/Bad Parse Tree

n/a

Expected Behavior/Parse Tree

n/a

Repro

n/a

clason commented 1 month ago

I expect that is just injecting the latex parser into a latex_block node.