aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBlake DeMarcy <ofunknowndescent@gmail.com>2017-03-03 19:56:08 -0600
committerBlake DeMarcy <ofunknowndescent@gmail.com>2017-03-03 19:56:08 -0600
commit0a88ecbc9930af381fbc80295c24abdc0370488d (patch)
tree052125e9533dd30ccc196ffba086d8a9758d26e7 /src
parent2632a822aecec10c7fb010873947b0781785378d (diff)
downloadbbj-0a88ecbc9930af381fbc80295c24abdc0370488d.tar.gz
removed some old references
Diffstat (limited to 'src')
-rw-r--r--src/endpoints.py4
-rw-r--r--src/formatting.py2
2 files changed, 1 insertions, 5 deletions
diff --git a/src/endpoints.py b/src/endpoints.py
index 9317ac3..973a528 100644
--- a/src/endpoints.py
+++ b/src/endpoints.py
@@ -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)
diff --git a/src/formatting.py b/src/formatting.py
index 0e4f4fb..56614c3 100644
--- a/src/formatting.py
+++ b/src/formatting.py
@@ -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)
Un proyecto texto-plano.xyz