From cd075a8ce29ae02bcf770cc64c93c6f25db1a4b6 Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Tue, 19 Dec 2017 14:38:06 +1100 Subject: [PATCH] Add
 to the list of acceptable tags so that code blocks
 work

---
 lemoncurry/templatetags/bleach.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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'),