mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-16 13:34:48 +02:00
Hyperlink :envvar: as well
This commit is contained in:
@@ -70,8 +70,8 @@ def resolve_ref(ref: str, website_url: Callable[[str], str] = website_url) -> st
|
||||
elif ref.startswith('action-'):
|
||||
frag = ref.partition('-')[-1].replace('_', '-')
|
||||
href = f'actions/#{frag}'
|
||||
elif ref.startswith('term-'):
|
||||
href = 'glossary/#term-' + ref.partition('-')[-1]
|
||||
elif ref.startswith('term-') or ref.startswith('envvar-'):
|
||||
href = 'glossary/#' + ref
|
||||
return website_url(href)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user