diff --git a/freepost/__init__.py b/freepost/__init__.py index aef0098..ba8b3ff 100755 --- a/freepost/__init__.py +++ b/freepost/__init__.py @@ -64,7 +64,7 @@ template = functools.partial ( # "bleach" library is used to sanitize the HTML output of jinja2's "md2html" # filter. The library has only a very restrictive list of white-listed # tags, so we add some more here. -bleach.sanitizer.ALLOWED_TAGS += [ 'br', 'img', 'p', 'pre' ] +bleach.sanitizer.ALLOWED_TAGS += [ 'br', 'img', 'p', 'pre', 'h1', 'h2', 'h3' ] bleach.sanitizer.ALLOWED_ATTRIBUTES.update ({ 'img': [ 'src' ] })