@ -50,10 +50,10 @@ def rewritelinks (html):
if "external" in linkclass:
# leave external links alone
continue
print ("LINK", href)
# print ("LINK", href)
if href.startswith("/sandbox/itchwiki/index.php/"):
new_href =
# a.attrib['href'] = new_href
new_href = filenameforlink(href)
a.attrib['href'] = new_href
html = ET.tostring(t, method="html", encoding="unicode")
return html