diff options
author | citrons <citrons> | 2021-06-23 19:02:02 +0000 |
---|---|---|
committer | citrons <citrons> | 2021-06-23 19:02:02 +0000 |
commit | 80b0827308acc189b6e2ffece65c5b84665ea5f1 (patch) | |
tree | 46e04a01f4a26f075ec41399f0aad3db98304188 /apioforum/mdrender.py | |
parent | 3123da15bf59e866e3f7d65bee3585c85c61fe97 (diff) |
colors for markdown
Diffstat (limited to 'apioforum/mdrender.py')
-rw-r--r-- | apioforum/mdrender.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/apioforum/mdrender.py b/apioforum/mdrender.py index 8c59c42..715617e 100644 --- a/apioforum/mdrender.py +++ b/apioforum/mdrender.py @@ -1,4 +1,5 @@ import bleach +from .csscolors import csscolors allowed_tags = [ 'p', @@ -12,9 +13,13 @@ allowed_tags = [ 'del', 'mark', 'img', - 'marquee' + 'marquee', + 'pulsate' ] +allowed_tags += csscolors +allowed_tags += ("mark" + c for c in csscolors) + allowed_attributes = bleach.sanitizer.ALLOWED_ATTRIBUTES.copy() allowed_attributes.update( img='src', |