mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-04 14:46:03 +00:00
Handle <> inside :ref: on the CLI
This commit is contained in:
parent
93a7b220c9
commit
11bc1b100c
1 changed files with 5 additions and 0 deletions
|
|
@ -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]]
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue