From d3a1848c2764bfabfdd5edb7dfaf7e2e930abbe4 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 2 Sep 2022 16:24:50 +0530 Subject: [PATCH] Remove markup from ref_hyperlink text --- kitty/cli.py | 1 + 1 file changed, 1 insertion(+) diff --git a/kitty/cli.py b/kitty/cli.py index 3e4fe433c..cd1a4e969 100644 --- a/kitty/cli.py +++ b/kitty/cli.py @@ -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)