Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
Discussion options

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?

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

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.

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

AltStyle によって変換されたページ (->オリジナル) /