removed some old references
parent
2632a822ae
commit
0a88ecbc99
|
@ -136,8 +136,6 @@ def thread_create(json):
|
|||
json["body"],
|
||||
json["title"],
|
||||
json["tags"])
|
||||
if json.get("nomarkup"):
|
||||
thread["body"] = formatting.cleanse(thread["body"])
|
||||
return schema.response(thread)
|
||||
|
||||
|
||||
|
@ -146,8 +144,6 @@ def thread_reply(json):
|
|||
json["thread_id"],
|
||||
json["user"],
|
||||
json["body"])
|
||||
if json.get("nomarkup"):
|
||||
reply["body"] = formatting.cleanse(reply["body"])
|
||||
return schema.response(reply)
|
||||
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@ from markdown import markdown
|
|||
from html import escape
|
||||
import re
|
||||
|
||||
# these parameters are utter nonsense...
|
||||
|
||||
COLORS = ["red", "green", "yellow", "blue", "magenta", "cyan"]
|
||||
MARKUP = ["bold", "italic", "underline", "strike"]
|
||||
TOKENS = re.compile(r"\[({}): (.+?)]".format("|".join(COLORS + MARKUP)), flags=re.DOTALL)
|
||||
|
|
Loading…
Reference in New Issue