summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorcitrons <citrons>2021-06-23 19:26:15 +0000
committercitrons <citrons>2021-06-23 19:26:15 +0000
commit807ea10167786db8ba7442f77405c55d70d1fd11 (patch)
treefe3357029c49577f01f87c967a4d9bb8db288ab0
parent80b0827308acc189b6e2ffece65c5b84665ea5f1 (diff)
color element
-rw-r--r--apioforum/mdrender.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/apioforum/mdrender.py b/apioforum/mdrender.py
index 715617e..2a0c9f5 100644
--- a/apioforum/mdrender.py
+++ b/apioforum/mdrender.py
@@ -14,7 +14,8 @@ allowed_tags = [
'mark',
'img',
'marquee',
- 'pulsate'
+ 'pulsate',
+ 'color'
]
allowed_tags += csscolors
@@ -23,6 +24,7 @@ allowed_tags += ("mark" + c for c in csscolors)
allowed_attributes = bleach.sanitizer.ALLOWED_ATTRIBUTES.copy()
allowed_attributes.update(
img='src',
+ color='color'
)
allowed_tags.extend(bleach.sanitizer.ALLOWED_TAGS)