summaryrefslogtreecommitdiff
path: root/queries/markdown/injections.scm
blob: 2310ee42fd47f1888a20d825f247562b732dd081 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
(fenced_code_block
  (info_string
    (language) @language)
  (#not-match? @language "elm")
  (code_fence_content) @content (#exclude_children! @content))

((html_block) @html)

((minus_metadata) @yaml (#offset! @yaml 1 0 -1 0))
((plus_metadata) @toml (#offset! @toml 1 0 -1 0))

([
  (inline)
  (pipe_table_cell)
 ] @markdown_inline (#exclude_children! @markdown_inline))