zed icon indicating copy to clipboard operation
zed copied to clipboard

LaTeX syntax highlighting within markdown

Open notpeter opened this issue 7 months ago • 0 comments

Summary

tree-sitter-markdown supports an optional non-default extension EXTENSION_LATEX which supports displaying syntax highlighting for inline LaTeX inside Markdown documents.

Description

This is not a request to add LaTeX rendering support to Zed Markdown Preview. This would merely support syntax highlighting of LaTex written within Markdown.

At build time, if EXTENSION_LATEX is set, markdown-tree-sitter I believe enable support for this (untested).

$$\int_{coffee}^{code} productivity \cdot d(time) = \sum_{i=0}^{bugs} frustration_i$$

$$\int_{coffee}^{code} productivity \cdot d(time) = \sum_{i=0}^{bugs} frustration_i$$

VSCode vs Zed:

Image Image

notpeter avatar May 08 '25 14:05 notpeter