diff --git a/judge/jinja2/markdown/__init__.py b/judge/jinja2/markdown/__init__.py index 6a081e5..bcaed82 100644 --- a/judge/jinja2/markdown/__init__.py +++ b/judge/jinja2/markdown/__init__.py @@ -52,17 +52,14 @@ ALLOWED_TAGS = bleach.sanitizer.ALLOWED_TAGS + [ "summary" ] -ALLOWED_ATTRS = ["src", "width", "height", "href", "class"] +ALLOWED_ATTRS = ["src", "width", "height", "href", "class", "open"] @registry.filter def markdown(value): - print("BEFORE:", value) extensions = EXTENSIONS html = _markdown.markdown(value, extensions=extensions) html = bleach.clean(html, tags=ALLOWED_TAGS, attributes=ALLOWED_ATTRS) if not html: html = escape(value) - print("AFTER") - print(html) return '
%s
' % html