Skip to content

Commit

Permalink
feat: add latex highlighting for math and fix inline code highlighting
Browse files Browse the repository at this point in the history
  • Loading branch information
mmibbetson committed Jan 17, 2025
1 parent db95764 commit a4722b5
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions runtime/queries/djot/injections.scm
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
((content) @injection.content
(comment (content) @injection.content
(#set! injection.language "comment"))

(math (content) @injection.content
(#set! injection.language "latex") (#set! injection.include-unnamed-children))

(code_block
(language) @injection.language
(code) @injection.content (#set! injection.include-unnamed-children))
Expand All @@ -11,6 +14,6 @@
(content) @injection.content (#set! injection.include-unnamed-children))

(raw_inline
(content) @injection.content
(content) @injection.content (#set! injection.include-unnamed-children)
(raw_inline_attribute
(language) @injection.language) (#set! injection.include-unnamed-children))
(language) @injection.language))

0 comments on commit a4722b5

Please sign in to comment.