diff --git a/files/routes/posts.py b/files/routes/posts.py index 89caa84b9..a06f03f1a 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 abcad2943..24e3b8682 100644 --- a/files/templates/submission.html +++ b/files/templates/submission.html @@ -360,8 +360,8 @@ {% for c in p.options %}