# markdown: Add LaTeX syntax highlighting injection \(\#41110\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/5a9b810aef5ff5769215d031ad6968795d7084df)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 5a9b810aef5ff5769215d031ad6968795d7084df

Requested commit: 5a9b810aef5ff5769215d031ad6968795d7084df

Commit: 5a9b810aef5ff5769215d031ad6968795d7084df

Tree: 7c504ab0bdbdd5ec6c3e263d3ffe0bde4d652cf9

Author: Luke Naylor

Committer: GitHub

## Message

```
markdown: Add LaTeX syntax highlighting injection (#41110)

Closes [#30264](https://github.com/zed-industries/zed/issues/30264)

Small addition based on
[nvim-treesitter](https://github.com/nvim-treesitter/nvim-treesitter/blob/main/runtime/queries/markdown_inline/injections.scm)

<img width="1122" height="356" alt="Screenshot From 2025-10-24 15-47-58"
src="https://github.com/user-attachments/assets/33e7387d-a299-4921-9db8-622d2657bec1"
/>

This does require the LaTeX extension to be installed.

Release Notes:

- Added LaTeX highlighting for inline and display equations in Markdown when the LaTeX extension is installed

---------

Co-authored-by: Ben Kunkle <ben@zed.dev>
```

## Parents

- [4fb671f4eb95b5190c4e9540322a61f137c556f5](https://git.cafe/gitcafe/zed/commit/4fb671f4eb95b5190c4e9540322a61f137c556f5?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/5a9b810aef5ff5769215d031ad6968795d7084df?format=markdown)
