From 2b4021dbe615e1ac72f21e9f3655ccee3c50dd48 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Wed, 6 Oct 2021 02:18:58 +0200 Subject: [PATCH] fdsfds --- files/routes/posts.py | 2 +- files/templates/formatting.html | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/files/routes/posts.py b/files/routes/posts.py index 2f4086fb6..63fa6d3c4 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -733,7 +733,7 @@ def submit_post(v): body = re.sub('([^\n])\n([^\n])', r'\1\n\n\2', body) options = [] - for i in re.finditer('\s*\$([^\$]+)\$\s*', body): + for i in re.finditer('\s*\$([^\$\n]+)\$\s*', body): options.append(i.group(1)) body = body.replace(i.group(0), "") diff --git a/files/templates/formatting.html b/files/templates/formatting.html index 4ac7a7450..e62ab805f 100644 --- a/files/templates/formatting.html +++ b/files/templates/formatting.html @@ -62,6 +62,17 @@ On {{'SITE_NAME' | app_config}}, you can use Markdown formatting. :!marseylove: :!marseylove: + + Poll Options + $bussy$ + +
+ + +
+ + + {% filter markdown %}