mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
fix(markdown_inline): prioritize link URI (#5935)
This commit is contained in:
parent
1ce6000a95
commit
88261266de
1 changed files with 12 additions and 12 deletions
|
|
@ -7,21 +7,9 @@
|
|||
|
||||
(strikethrough) @markup.strikethrough
|
||||
|
||||
[
|
||||
(link_destination)
|
||||
(uri_autolink)
|
||||
] @markup.link.url @nospell
|
||||
|
||||
(shortcut_link
|
||||
(link_text) @nospell)
|
||||
|
||||
[
|
||||
(link_label)
|
||||
(link_text)
|
||||
(link_title)
|
||||
(image_description)
|
||||
] @markup.link.label
|
||||
|
||||
[
|
||||
(backslash_escape)
|
||||
(hard_line_break)
|
||||
|
|
@ -82,6 +70,18 @@
|
|||
] @markup.link
|
||||
(#set! conceal ""))
|
||||
|
||||
[
|
||||
(link_destination)
|
||||
(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