Remapping urls
This commit is contained in:
parent
3b87cffed6
commit
ef1531c405
6 changed files with 18 additions and 16 deletions
|
|
@ -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']
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue