Also hyperlink the :ac: role in CLI help output

This commit is contained in:
Kovid Goyal
2022-08-19 14:05:11 +05:30
parent 5350eb29c1
commit a59e1adee1
2 changed files with 10 additions and 1 deletions
+9
View File
@@ -178,6 +178,15 @@ def ref(x: str) -> str:
return t
@role
def ac(x: str) -> str:
t, q = text_and_target(x)
url = resolve_ref(q)
if url:
return hyperlink_for_url(url, t)
return t
OptionSpecSeq = List[Union[str, OptionDict]]