aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorFlakebi2021-12-29 16:26:28 +0000
committerIvan Tham2022-01-01 09:36:12 +0000
commit0dab6c8c17c027092e117a48f60feb099cd8d59c (patch)
tree01d4bc52bd3bd9c53b76df4a08948870f890ef33 /runtime
parent8a019b423f5d51bcfc107da9cb50aa90eacff19d (diff)
Fix markdown code-block highlighting
Markdown code blocks should be highlighted as a single block, so set injection.include-children.
Diffstat (limited to 'runtime')
-rw-r--r--runtime/queries/markdown/injections.scm3
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/queries/markdown/injections.scm b/runtime/queries/markdown/injections.scm
index ff3c5fe6..10dcab0b 100644
--- a/runtime/queries/markdown/injections.scm
+++ b/runtime/queries/markdown/injections.scm
@@ -1,6 +1,7 @@
(fenced_code_block
(info_string) @injection.language
- (code_fence_content) @injection.content)
+ (code_fence_content) @injection.content
+ (#set! injection.include-children))
((html_block) @injection.content
(#set! injection.language "html"))