Remove markup from ref_hyperlink text

This commit is contained in:
Kovid Goyal 2022-09-02 16:28:50 +05:30
parent a7f6105393
commit 7ecc1b7950
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -239,6 +239,9 @@ func text_and_target(x string) (text string, target string) {
func ref_hyperlink(x string, prefix string) string {
text, target := text_and_target(x)
url := "kitty+doc://" + CachedHostname() + "/#ref=" + prefix + target
text = ReplaceAllStringSubmatchFunc(prettify_pat, text, func(groups []string) string {
return groups[2]
})
return hyperlink_for_url(url, text)
}