Disable HTML sanitisation on help pages

This commit is contained in:
rubenwardy
2025-06-03 23:14:42 +01:00
parent 815d812297
commit c931c78b6a
2 changed files with 6 additions and 3 deletions

View File

@@ -66,7 +66,7 @@ app = Flask(__name__, static_folder="public/static")
def my_flatpage_renderer(text):
# Render with jinja first
prerendered_body = render_template_string(text)
return render_markdown(prerendered_body)
return render_markdown(prerendered_body, clean=False)
app.config["FLATPAGES_ROOT"] = "flatpages"