-
Notifications
You must be signed in to change notification settings - Fork 78
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.
All reactions
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
-
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.
Beta Was this translation helpful? Give feedback.