mirror of
https://github.com/minetest/contentdb.git
synced 2024-12-22 22:12:24 +01:00
Fix incorrect use of flatpages markdown parser
This commit is contained in:
parent
2867856d40
commit
2851c8803c
@ -36,7 +36,7 @@ app = Flask(__name__, static_folder="public/static")
|
|||||||
def my_flatpage_renderer(text):
|
def my_flatpage_renderer(text):
|
||||||
# Render with jinja first
|
# Render with jinja first
|
||||||
prerendered_body = render_template_string(text)
|
prerendered_body = render_template_string(text)
|
||||||
return pygmented_markdown(prerendered_body)
|
return pygmented_markdown(prerendered_body, flatpages=pages)
|
||||||
|
|
||||||
|
|
||||||
app.config["FLATPAGES_ROOT"] = "flatpages"
|
app.config["FLATPAGES_ROOT"] = "flatpages"
|
||||||
|
Loading…
Reference in New Issue
Block a user