removed some old references
parent
2632a822ae
commit
0a88ecbc99
|
@ -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)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue