mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-06-24 18:07:01 +00:00
Remove markup from ref_hyperlink text
This commit is contained in:
parent
a7f6105393
commit
7ecc1b7950
1 changed files with 3 additions and 0 deletions
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue