Also allow using at-cmd

This commit is contained in:
Kovid Goyal
2022-08-28 10:26:38 +05:30
parent 391e2b8488
commit 555020cfd5
2 changed files with 4 additions and 0 deletions

View File

@@ -66,6 +66,9 @@ def resolve_ref(ref: str, website_url: Callable[[str], str] = website_url) -> st
elif ref.startswith('at_'):
base = ref.split('_', 1)[1]
href = "remote-control/#at-" + base.replace('_', '-')
elif ref.startswith('at-'):
base = ref.split('-', 1)[1]
href = "remote-control/#at-" + base.replace('_', '-')
elif ref.startswith('action-group-'):
href = f'actions/#{ref}'
elif prefix == 'action':