From 807ea10167786db8ba7442f77405c55d70d1fd11 Mon Sep 17 00:00:00 2001 From: citrons Date: Wed, 23 Jun 2021 19:26:15 +0000 Subject: color element --- apioforum/mdrender.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) -- cgit v1.2.3