From 70e1140ac5dc8d17f3677370a5d5c1ca92a81523 Mon Sep 17 00:00:00 2001 From: Mole1424 Date: Mon, 21 Aug 2023 11:10:33 +0000 Subject: [PATCH] actually implement strike_through --- app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index 2a47ba6..c246c0d 100644 --- a/app.py +++ b/app.py @@ -76,8 +76,8 @@ def project(project_id: int): project = Projects.query.filter_by(id=project_id).first() if project is None: # protect against invalid project ids which caused 500 errors return render_template("noproject.html") - markdown_html = remove_amp_from_code_tags( - markdown(escape(project.blog)) + markdown_html = add_stike_through( + remove_amp_from_code_tags(markdown(escape(project.blog))) ) # converts markdown to html (escape is used to prevent xss) return render_template( "projectpage.html", project=project, markdown_html=markdown_html