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 %}