Remapping urls

This commit is contained in:
Griatch 2020-07-08 21:55:19 +02:00
parent 3b87cffed6
commit ef1531c405
6 changed files with 18 additions and 16 deletions

View file

@ -86,6 +86,7 @@ def create_toctree():
ref_doc_regex = re.compile(r"\[(?P<txt>[\w -]+?)\]:\s+?(?P<url>.+?)(?=$|\n)", re.I + re.S + re.U)
def _sub(match):
# inline reference links
grpdict = match.groupdict()
txt, url = grpdict['txt'], grpdict['url']
@ -111,6 +112,7 @@ def create_toctree():
return f"[{txt}]({urlout})"
def _sub_doc(match):
# reference links set at the bottom of the page
grpdict = match.groupdict()
txt, url = grpdict['txt'], grpdict['url']