tree-sitter-markdown
tree-sitter-markdown copied to clipboard
Injection for LaTeX blocks
Although it does not appear to have been added to the GFM spec, GitHub recently added support for LaTeX rendering on their website using $
and $$
blocks. It is more formally outlined here.
Accordingly, It would be amazing if the parser could be extended to detect LaTeX blocks as marked by $
and $$
and provide injections for them.
Second this, it would be great because I often write latex in markdown with mathjax
Good suggestion. This shouldn't be too much of a problem to implement.
Looking forward to this as well!
Looking forward to the implementation!
FYI, there is a working PR for this, which should be able to be merged soon #71
As #71 is closed now, all that is needed is for injection of latex is editor-specific configuration. For people using neovim that means some very small changes in nvim-treesitter. I'm happy to help if there are problems.