Skip to content

LaTeX syntax highlighting within markdown #30264

@notpeter

Description

@notpeter

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions