mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-17 10:50:06 -04:00
fix(markdown): align link with image highlights
This commit is contained in:
parent
fed32362ad
commit
c579d186be
1 changed files with 10 additions and 10 deletions
|
|
@ -33,10 +33,17 @@
|
||||||
] @markup.link
|
] @markup.link
|
||||||
(#set! conceal ""))
|
(#set! conceal ""))
|
||||||
|
|
||||||
|
[
|
||||||
|
(link_label)
|
||||||
|
(link_text)
|
||||||
|
(link_title)
|
||||||
|
(image_description)
|
||||||
|
] @markup.link.label
|
||||||
|
|
||||||
(inline_link
|
(inline_link
|
||||||
(link_text) @markup.link.label
|
(link_text) @_label
|
||||||
(link_destination) @markup.link
|
(link_destination) @_url
|
||||||
(#set! @markup.link.label "url" @markup.link))
|
(#set! @_label "url" @_url))
|
||||||
|
|
||||||
; Conceal image links
|
; Conceal image links
|
||||||
(image
|
(image
|
||||||
|
|
@ -80,13 +87,6 @@
|
||||||
(uri_autolink)
|
(uri_autolink)
|
||||||
] @markup.link.url @nospell
|
] @markup.link.url @nospell
|
||||||
|
|
||||||
[
|
|
||||||
(link_label)
|
|
||||||
(link_text)
|
|
||||||
(link_title)
|
|
||||||
(image_description)
|
|
||||||
] @markup.link.label
|
|
||||||
|
|
||||||
; Replace common HTML entities.
|
; Replace common HTML entities.
|
||||||
((entity_reference) @character.special
|
((entity_reference) @character.special
|
||||||
(#eq? @character.special " ")
|
(#eq? @character.special " ")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue