diff --git a/lemoncurry/templatetags/bleach.py b/lemoncurry/templatetags/bleach.py index 3818eb1..5fc9894 100644 --- a/lemoncurry/templatetags/bleach.py +++ b/lemoncurry/templatetags/bleach.py @@ -5,7 +5,7 @@ from django.utils.safestring import mark_safe from bleach.sanitizer import Cleaner, ALLOWED_TAGS from bleach.linkifier import LinkifyFilter -tags = ['code', 'p', 'img', 'span'] +tags = ['code', 'p', 'pre', 'img', 'span'] tags.extend(ALLOWED_TAGS) attributes = { 'a': ('href', 'title', 'class'),