mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -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
|
||||
(#set! conceal ""))
|
||||
|
||||
[
|
||||
(link_label)
|
||||
(link_text)
|
||||
(link_title)
|
||||
(image_description)
|
||||
] @markup.link.label
|
||||
|
||||
(inline_link
|
||||
(link_text) @markup.link.label
|
||||
(link_destination) @markup.link
|
||||
(#set! @markup.link.label "url" @markup.link))
|
||||
(link_text) @_label
|
||||
(link_destination) @_url
|
||||
(#set! @_label "url" @_url))
|
||||
|
||||
; Conceal image links
|
||||
(image
|
||||
|
|
@ -80,13 +87,6 @@
|
|||
(uri_autolink)
|
||||
] @markup.link.url @nospell
|
||||
|
||||
[
|
||||
(link_label)
|
||||
(link_text)
|
||||
(link_title)
|
||||
(image_description)
|
||||
] @markup.link.label
|
||||
|
||||
; Replace common HTML entities.
|
||||
((entity_reference) @character.special
|
||||
(#eq? @character.special " ")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue