summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornumToStr <vikasraj1911@gmail.com>2022-01-07 13:48:23 +0530
committerStephan Seitz <stephan.seitz@fau.de>2022-01-07 11:14:29 +0100
commitab691444ce49e3f015225154f6c3b78837b1da86 (patch)
treeb489e5218710a68a6c3614c9d1b2a16e2d117000
parent2a49c05f66f60278019469b075f8658769df68e0 (diff)
highlights(markdown): `image_description` as reference
-rw-r--r--queries/markdown/highlights.scm9
1 files changed, 5 insertions, 4 deletions
diff --git a/queries/markdown/highlights.scm b/queries/markdown/highlights.scm
index 1f017d9c..34197182 100644
--- a/queries/markdown/highlights.scm
+++ b/queries/markdown/highlights.scm
@@ -13,7 +13,6 @@
(setext_h2_underline)
] @punctuation.special
-
[
(code_span)
(link_title)
@@ -31,8 +30,11 @@
(link_destination) @text.uri
-(link_label) @text.reference
-(link_text) @text.reference
+[
+ (link_label)
+ (link_text)
+ (image_description)
+] @text.reference
[
(list_marker_plus)
@@ -48,7 +50,6 @@
(hard_line_break)
] @string.escape
-
(image "!" @punctuation.delimiter)
(image "[" @punctuation.delimiter)
(image "]" @punctuation.delimiter)