Fix bug with removal of footnotes in preview

This commit is contained in:
RunasSudo 2020-07-23 22:30:04 +10:00
parent 60a60ace18
commit d60516420b
Signed by: RunasSudo
GPG Key ID: 7234E476BF21C61A
1 changed files with 4 additions and 2 deletions

View File

@ -165,8 +165,10 @@ def page_preview(path):
else:
elem.text += child.tail
elem.remove(child)
walk_tree(child)
last_child = child
walk_tree(child)
else:
walk_tree(child)
last_child = child
walk_tree(page_root[0])
page_content = md.serialise(page_root)