From 2851c8803c03e9d4704cf44594182c3597dcc082 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Mon, 4 Mar 2024 18:09:27 +0000 Subject: [PATCH] Fix incorrect use of flatpages markdown parser --- app/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/__init__.py b/app/__init__.py index c1aa6a83..3820a3f9 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -36,7 +36,7 @@ app = Flask(__name__, static_folder="public/static") def my_flatpage_renderer(text): # Render with jinja first prerendered_body = render_template_string(text) - return pygmented_markdown(prerendered_body) + return pygmented_markdown(prerendered_body, flatpages=pages) app.config["FLATPAGES_ROOT"] = "flatpages"