fix(html): correct the link label highlight (#6866)

Unlike the `href` attribute, the inner text of the `a` tag is the label
of the link, not the actual URL.
This commit is contained in:
Riley Bruins 2024-07-04 19:09:26 -07:00 committed by GitHub
parent f0dbe18000
commit f7c05e3e05
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -86,7 +86,7 @@
((element
(start_tag
(tag_name) @_tag)
(text) @string.special.url)
(text) @markup.link.label)
(#eq? @_tag "a"))
((attribute