mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-27 02:31:45 +02:00
Remove markup from ref_hyperlink text
This commit is contained in:
@@ -239,6 +239,9 @@ func text_and_target(x string) (text string, target string) {
|
|||||||
func ref_hyperlink(x string, prefix string) string {
|
func ref_hyperlink(x string, prefix string) string {
|
||||||
text, target := text_and_target(x)
|
text, target := text_and_target(x)
|
||||||
url := "kitty+doc://" + CachedHostname() + "/#ref=" + prefix + target
|
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)
|
return hyperlink_for_url(url, text)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user