fix(markdown): don't set link metadata twice

Otherwise the same link will be opened twice when the cursor is on the
link text itself.
This commit is contained in:
Riley Bruins 2024-09-28 09:45:49 -07:00 committed by Christian Clason
parent 84836f08ef
commit 36b78d112b

View file

@ -91,9 +91,6 @@
(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))