Closed ad-chaos closed 2 years ago
I assume you are using neovim? This issue should better be discussed in the nvim-treesitter repo. The tree-sitter-markdown grammar just marks all the elements of the markdown file. It can't actually change how languages are injected. nvim-treesitter does the actual work for that, so feel free to open an issue there.
Oh sorry, thanks for pointing me in the right direction!
Currently in a md file, these is what the cplusplus code blocks look like:
Some projects use
c++
instead ofcpp
to mark cplusplus code blocks, it would be nice if that was recognised as well. I would've made a PR, but I am not well acquainted with the ways of tree-sitter, hence filing an issue.Thanks!