Handle <> inside :ref: on the CLI

This commit is contained in:
Kovid Goyal 2022-04-12 19:48:09 +05:30
parent 93a7b220c9
commit 11bc1b100c
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -149,6 +149,11 @@ def doc(x: str) -> str:
return website_url(x)
@role
def ref(x: str) -> str:
return re.sub(r'\s*<.+?>', '', x)
OptionSpecSeq = List[Union[str, OptionDict]]