Fix GitHub links in commented configuration

Hyperlink GitHub related text roles: iss, pull, disc
This commit is contained in:
pagedown
2022-08-24 13:27:12 +08:00
parent 0e0578ff49
commit c437a36794
3 changed files with 40 additions and 13 deletions

View File

@@ -193,6 +193,21 @@ def ac(x: str) -> str:
return ref_hyperlink(x, 'action-')
@role
def iss(x: str) -> str:
return ref_hyperlink(x, 'github-issue-')
@role
def pull(x: str) -> str:
return ref_hyperlink(x, 'github-pr-')
@role
def disc(x: str) -> str:
return ref_hyperlink(x, 'github-discussion-')
OptionSpecSeq = List[Union[str, OptionDict]]