Skip to content

Commit

Permalink
actually implement strike_through
Browse files Browse the repository at this point in the history
  • Loading branch information
Mole1424 committed Aug 21, 2023
1 parent 1bdf562 commit 70e1140
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 70e1140

Please sign in to comment.