Add markdown grammar
Hi @FeiyouG ! Thank you for your contribution.
I have noticed in the current form the parser is a bit hard to use.
According to documentation:
The parser is spit into two grammars To use the two grammars, first parse the document with the block grammar. Then perform a second parse with the inline grammar using ts_parser_set_included_ranges to specify which parts are inline content.
Do you think we could do it in the binding itself? Similar to how it is implemented in the Rust binding.
So go-tree-sitter could expose 3 markdown grammars:
markdown- to be used in most cases and combines the other 2markdown/inline- for advanced use-casesmarkdown/block- for advanced use-cases
Sure thing. I will be looking into this as soon as I get some free time.