aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/markdown/injections.scm
blob: 0bead6f4ac26544c6fb29157943a493484ef35d4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
(fenced_code_block
  (info_string
    (language) @_lang)
  (code_fence_content) @injection.content
  (#inject-language! @_lang))

((html_block) @injection.content 
 (#set! injection.language "html")
 (#set! injection.combined)
 (#set! injection.include-children))

((minus_metadata) @injection.content 
 (#set! injection.language "yaml") 
 (#offset! @injection.content 1 0 -1 0)
 (#set! injection.include-children))

((plus_metadata) @injection.content 
 (#set! injection.language "toml") 
 (#offset! @injection.content 1 0 -1 0)
 (#set! injection.include-children))

([
  (inline)
  (pipe_table_cell)
 ] @injection.content
 (#set! injection.language "markdown_inline"))