From 6365b406aad4d26e4a708f5ced600cae14671f9f Mon Sep 17 00:00:00 2001 From: Maximilian Blazek <68336485+dgtlntv@users.noreply.github.com> Date: Mon, 29 Apr 2024 10:54:22 +0200 Subject: [PATCH] revert changes --- vanilla/requirements.txt | 2 +- vanilla/webapp/app.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vanilla/requirements.txt b/vanilla/requirements.txt index a43325a..0a5d135 100644 --- a/vanilla/requirements.txt +++ b/vanilla/requirements.txt @@ -3,5 +3,5 @@ canonicalwebteam.discourse==5.4.9 canonicalwebteam.templatefinder==1.0.0 canonicalwebteam.search==1.3.0 canonicalwebteam.image-template==1.3.1 -mistune==3.0.2 +mistune==0.8.4 pyyaml==6.0.1 diff --git a/vanilla/webapp/app.py b/vanilla/webapp/app.py index 1a48947..a5c21a2 100644 --- a/vanilla/webapp/app.py +++ b/vanilla/webapp/app.py @@ -203,7 +203,7 @@ def global_template_context(): @app.template_filter() def markdown(text): - return mistune.html(text) + return markupsafe.Markup(mistune.markdown(text)) def class_reference(component=None):