makerst: Make external links anonymous
Otherwise we get errors if we use the same title for different links in a given class.
(cherry picked from commit 1e36f5f524
)
This commit is contained in:
parent
c7eb3d25e7
commit
322387b694
1 changed files with 3 additions and 3 deletions
|
@ -860,7 +860,7 @@ def rstize_text(text, state): # type: (str, State) -> str
|
||||||
inside_url = True
|
inside_url = True
|
||||||
url_has_name = False
|
url_has_name = False
|
||||||
elif cmd == "/url":
|
elif cmd == "/url":
|
||||||
tag_text = ("" if url_has_name else url_link) + " <" + url_link + ">`_"
|
tag_text = ("" if url_has_name else url_link) + " <" + url_link + ">`__"
|
||||||
tag_depth -= 1
|
tag_depth -= 1
|
||||||
escape_post = True
|
escape_post = True
|
||||||
inside_url = False
|
inside_url = False
|
||||||
|
@ -1091,9 +1091,9 @@ def make_link(url, title): # type: (str, str) -> str
|
||||||
# External link, for example:
|
# External link, for example:
|
||||||
# `http://enet.bespin.org/usergroup0.html`
|
# `http://enet.bespin.org/usergroup0.html`
|
||||||
if title != "":
|
if title != "":
|
||||||
return "`" + title + " <" + url + ">`_"
|
return "`" + title + " <" + url + ">`__"
|
||||||
else:
|
else:
|
||||||
return "`" + url + " <" + url + ">`_"
|
return "`" + url + " <" + url + ">`__"
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|
Loading…
Reference in a new issue