aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/markdown_inline/highlights.scm
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/queries/markdown_inline/highlights.scm')
-rw-r--r--runtime/queries/markdown_inline/highlights.scm12
1 files changed, 11 insertions, 1 deletions
diff --git a/runtime/queries/markdown_inline/highlights.scm b/runtime/queries/markdown_inline/highlights.scm
index 233ab411cd..ac99cce5fc 100644
--- a/runtime/queries/markdown_inline/highlights.scm
+++ b/runtime/queries/markdown_inline/highlights.scm
@@ -85,12 +85,22 @@
[
(link_destination)
(uri_autolink)
+ (email_autolink)
] @markup.link.url @nospell
+((link_destination) @_url
+ (#set! @_url "url" @_url))
+
+((uri_autolink) @_url
+ (#offset! @_url 0 1 0 -1)
+ (#set! @_url "url" @_url))
+
+(entity_reference) @nospell
+
; Replace common HTML entities.
((entity_reference) @character.special
(#eq? @character.special " ")
- (#set! conceal ""))
+ (#set! conceal " "))
((entity_reference) @character.special
(#eq? @character.special "<")