1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-27 13:34:28 +00:00
This commit is contained in:
Steffo 2019-02-03 20:29:32 +01:00
parent a9dfed9dad
commit 70fb385f12

View file

@ -235,7 +235,7 @@ def page_wiki(key: str):
wiki_latest_edit = fl_g.session.query(db.WikiLog).filter_by(edited_key=key) \ wiki_latest_edit = fl_g.session.query(db.WikiLog).filter_by(edited_key=key) \
.order_by(db.WikiLog.timestamp.desc()).first() .order_by(db.WikiLog.timestamp.desc()).first()
if wiki_page is None: if wiki_page is None:
return render_template("wikipage.html", key=key) return render_template("wikipage.html", key=key, wiki_page=None)
# Embed YouTube videos # Embed YouTube videos
converted_md = markdown2.markdown(wiki_page.content.replace("<", "&lt;"), converted_md = markdown2.markdown(wiki_page.content.replace("<", "&lt;"),
extras=["spoiler", "tables", "smarty-pants", "fenced-code-blocks"]) extras=["spoiler", "tables", "smarty-pants", "fenced-code-blocks"])