mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-06-26 10:51:55 +00:00
Remove markup from ref_hyperlink text
This commit is contained in:
parent
9cec924f32
commit
d3a1848c27
1 changed files with 1 additions and 0 deletions
|
|
@ -187,6 +187,7 @@ def hostname() -> str:
|
|||
def ref_hyperlink(x: str, prefix: str = '') -> str:
|
||||
t, q = text_and_target(x)
|
||||
url = f'kitty+doc://{hostname()}/#ref={prefix}{q}'
|
||||
t = re.sub(r':([a-z]+):`([^`]+)`', r'\2', t)
|
||||
return hyperlink_for_url(url, t)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue