helix-mirror/runtime/queries/markdown.inline/injections.scm
Pham Huy Hoang 56ccaedffb
markdown.inline: Add injection.combined to html tag (#7960)
Problem: Closing tags for markdown is sometimes not highlighted
Solution: Add `injection.combined` to create a valid syntax tree for
highlighting
2023-08-16 11:28:07 -05:00

8 lines
259 B
Scheme

((html_tag) @injection.content
(#set! injection.language "html")
(#set! injection.include-unnamed-children)
(#set! injection.combined))
((latex_block) @injection.content (#set! injection.language "latex") (#set! injection.include-unnamed-children))