This commit is contained in:
Aevann1 2021-10-06 01:13:16 +02:00
parent 450ac450aa
commit 84abaad632
2 changed files with 3 additions and 3 deletions

View file

@ -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)