makerst: Make external links anonymous
Otherwise we get errors if we use the same title for different links in a given class.
This commit is contained in:
parent
e87f3dd4d0
commit
1e36f5f524
1 changed files with 3 additions and 3 deletions
|
@ -871,7 +871,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
|
||||||
|
@ -1127,9 +1127,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…
Add table
Reference in a new issue