Unnamed repository; edit this file 'description' to name the repository.
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
Pham Huy Hoang 2023-08-16
parent 0a45fb4 · commit 56ccaed
-rw-r--r--runtime/queries/markdown.inline/injections.scm5
1 files changed, 4 insertions, 1 deletions
diff --git a/runtime/queries/markdown.inline/injections.scm b/runtime/queries/markdown.inline/injections.scm
index c2e7012c..62b82678 100644
--- a/runtime/queries/markdown.inline/injections.scm
+++ b/runtime/queries/markdown.inline/injections.scm
@@ -1,4 +1,7 @@
-((html_tag) @injection.content (#set! injection.language "html") (#set! injection.include-unnamed-children))
+((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))