Skip to content

Commit 364dfbe

Browse files
lnayprobably-neb
authored andcommitted
markdown: Add LaTeX syntax highlighting injection (zed-industries#41110)
Closes [zed-industries#30264](zed-industries#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>
1 parent 23c572a commit 364dfbe

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
((latex_block) @injection.content
2+
(#set! injection.language "latex"))

0 commit comments

Comments
 (0)