Skip to content

Commit

Permalink
Fix markdown code-block highlighting
Browse files Browse the repository at this point in the history
Markdown code blocks should be highlighted as a single block, so set
injection.include-children.
  • Loading branch information
Flakebi authored and pickfire committed Jan 1, 2022
1 parent 8a019b4 commit 0dab6c8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion runtime/queries/markdown/injections.scm
Original file line number Diff line number Diff line change
@@ -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"))
Expand Down

0 comments on commit 0dab6c8

Please sign in to comment.