1; From nvim-treesitter/nvim-treesitter
2[
3 (code_span)
4 (link_title)
5] @text.literal
6
7[
8 (emphasis_delimiter)
9 (code_span_delimiter)
10] @punctuation.delimiter
11
12(emphasis) @text.emphasis
13
14(strong_emphasis) @text.strong
15
16[
17 (link_destination)
18 (uri_autolink)
19] @text.uri
20
21[
22 (link_label)
23 (link_text)
24 (image_description)
25] @text.reference
26
27[
28 (backslash_escape)
29 (hard_line_break)
30] @string.escape
31
32(image
33 [
34 "!"
35 "["
36 "]"
37 "("
38 ")"
39 ] @punctuation.delimiter)
40
41(inline_link
42 [
43 "["
44 "]"
45 "("
46 ")"
47 ] @punctuation.delimiter)
48
49(shortcut_link
50 [
51 "["
52 "]"
53 ] @punctuation.delimiter)
54
55; NOTE: extension not enabled by default
56; (wiki_link ["[" "|" "]"] @punctuation.delimiter)