From ab4a860524e6a7a8459a07f22928b948bafe1120 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Wed, 6 Oct 2021 01:13:16 +0200 Subject: [PATCH] fgdfg --- files/routes/posts.py | 2 +- files/templates/submission.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/files/routes/posts.py b/files/routes/posts.py index 89caa84b97..a06f03f1a5 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -735,7 +735,7 @@ def submit_post(v): options = [] for i in re.finditer('\s*\$([^\$]+)\$\s*', body): options.append(i.group(1)) - body.replace(i.group(0), "") + body = body.replace(i.group(0), "") body_md = CustomRenderer().render(mistletoe.Document(body)) body_html = sanitize(body_md) diff --git a/files/templates/submission.html b/files/templates/submission.html index abcad2943c..24e3b8682f 100644 --- a/files/templates/submission.html +++ b/files/templates/submission.html @@ -360,8 +360,8 @@ {% for c in p.options %}
- - + +
{% endfor %}