From b0e72c1bdba2b1c8038a5090cad281127a66f597 Mon Sep 17 00:00:00 2001 From: Mads Jensen Date: Fri, 27 Sep 2019 11:53:28 +0200 Subject: [PATCH] Corrected permitted h-level tags. h0 and h7 don't exist. --- src/wiki/conf/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wiki/conf/settings.py b/src/wiki/conf/settings.py index 7472a33f..87f4c857 100644 --- a/src/wiki/conf/settings.py +++ b/src/wiki/conf/settings.py @@ -84,7 +84,7 @@ _default_tag_whitelists = bleach.ALLOWED_TAGS + [ 'dl', 'dt', 'dd', -] + ['h{}'.format(n) for n in range(8)] +] + ['h{}'.format(n) for n in range(1, 7)] #: List of allowed tags in Markdown article contents. -- 2.45.2