From e03672d7e0db8a608fd826f79abd9bbfb8bcfa5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Espino?= Date: Mon, 29 Dec 2014 16:13:56 +0100 Subject: [PATCH] Add h4, h5 and h6 to mdrender allowed tags --- taiga/mdrender/service.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/taiga/mdrender/service.py b/taiga/mdrender/service.py index 70d236a5..19715404 100644 --- a/taiga/mdrender/service.py +++ b/taiga/mdrender/service.py @@ -51,9 +51,10 @@ from .extensions.references import TaigaReferencesExtension # Bleach configuration -bleach.ALLOWED_TAGS += ["p", "table", "thead", "tbody", "th", "tr", "td", "h1", "h2", "h3", - "div", "pre", "span", "hr", "dl", "dt", "dd", "sup", - "img", "del", "br", "ins"] +bleach.ALLOWED_TAGS += ["p", "table", "thead", "tbody", "th", "tr", "td", "h1", + "h2", "h3", "h4", "h5", "h6", "div", "pre", "span", + "hr", "dl", "dt", "dd", "sup", "img", "del", "br", + "ins"] bleach.ALLOWED_STYLES.append("background")