removed some old references

pull/4/head
Blake DeMarcy 2017-03-03 19:56:08 -06:00
parent 2632a822ae
commit 0a88ecbc99
2 changed files with 1 additions and 5 deletions

View File

@ -136,8 +136,6 @@ def thread_create(json):
json["body"], json["body"],
json["title"], json["title"],
json["tags"]) json["tags"])
if json.get("nomarkup"):
thread["body"] = formatting.cleanse(thread["body"])
return schema.response(thread) return schema.response(thread)
@ -146,8 +144,6 @@ def thread_reply(json):
json["thread_id"], json["thread_id"],
json["user"], json["user"],
json["body"]) json["body"])
if json.get("nomarkup"):
reply["body"] = formatting.cleanse(reply["body"])
return schema.response(reply) return schema.response(reply)

View File

@ -2,7 +2,7 @@ from markdown import markdown
from html import escape from html import escape
import re import re
# these parameters are utter nonsense...
COLORS = ["red", "green", "yellow", "blue", "magenta", "cyan"] COLORS = ["red", "green", "yellow", "blue", "magenta", "cyan"]
MARKUP = ["bold", "italic", "underline", "strike"] MARKUP = ["bold", "italic", "underline", "strike"]
TOKENS = re.compile(r"\[({}): (.+?)]".format("|".join(COLORS + MARKUP)), flags=re.DOTALL) TOKENS = re.compile(r"\[({}): (.+?)]".format("|".join(COLORS + MARKUP)), flags=re.DOTALL)