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? |
Beta Was this translation helpful? Give feedback.
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 |
Beta Was this translation helpful? Give feedback.
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 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_block
nodes, or you can probably write some custom treesitter query for yourself to do the language injection.