Skip to content

LaTeX AMS #502

Discussion options

You must be logged in to vote

This is up to the markdown parser.

The current one has support for identifying latex_block nodes (the ones using dollar signs). Then the default injections.scm says to parse those sections as latex.

In order to handle other syntaxes you'd either need to update the parser to be able to handle additional ways of identifying latex_block nodes, or you can probably write some custom treesitter query for yourself to do the language injection.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by dilavni
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants