LaTeX AMS #502
|
The LaTeX rendering only works with "$..$" for inline and "$$..$$" for display. Rendering doesn't work with the AMS format of "\[..\]" and "\(..\)". The latter is the format LLM's spit it out so it'd be convenient if it was supported. Is there an option for it that I'm missing? |
Answered by
MeanderingProgrammer
Aug 17, 2025
Replies: 1 comment
|
This is up to the markdown parser. The current one has support for identifying In order to handle other syntaxes you'd either need to update the parser to be able to handle additional ways of identifying |
0 replies
Answer selected by
dilavni
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is up to the markdown parser.
The current one has support for identifying
latex_blocknodes (the ones using dollar signs). Then the default injections.scm says to parse those sections aslatex.In order to handle other syntaxes you'd either need to update the parser to be able to handle additional ways of identifying
latex_blocknodes, or you can probably write some custom treesitter query for yourself to do the language injection.