From 568322daec5a649a9481c5265b1720ea574db509 Mon Sep 17 00:00:00 2001 From: Maximilian Blazek <68336485+dgtlntv@users.noreply.github.com> Date: Mon, 29 Apr 2024 10:47:44 +0200 Subject: [PATCH] Update app.py --- vanilla/webapp/app.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vanilla/webapp/app.py b/vanilla/webapp/app.py index 6e95b91..8905bee 100644 --- a/vanilla/webapp/app.py +++ b/vanilla/webapp/app.py @@ -203,7 +203,8 @@ def global_template_context(): @app.template_filter() def markdown(text): - return markupsafe.Markup(mistune.html(text)) + markdown = mistune.create_markdown(escape=False) + return markupsafe.Markup(markdown(text)) def class_reference(component=None):