Fix internal profile page links

This commit is contained in:
Thomas Sileo
2019-09-01 10:48:02 +02:00
parent 96121e57f3
commit c530b24589
3 changed files with 15 additions and 3 deletions

View File

@@ -22,7 +22,9 @@ def highlight(html: str) -> str:
if not code.parent.name == "pre":
continue
lexer = guess_lexer(code.text)
tag = BeautifulSoup(phighlight(code.text, lexer, _FORMATTER), "html5lib").body.next
tag = BeautifulSoup(
phighlight(code.text, lexer, _FORMATTER), "html5lib"
).body.next
pre = code.parent
pre.replaceWith(tag)
out = soup.body