"""Template filters for use across apps."""

import bleach
from docutils import core

__all__ = 'rst_to_html'

_ALLOWED_TAGS = bleach.ALLOWED_TAGS + ['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'p']


def rst_to_html(value):
    """Return HTML generated from reStructuredText."""
    parts = core.publish_parts(source=value, writer_name='html')
    return bleach.clean(
        parts['body_pre_docinfo'] + parts['fragment'], tags=_ALLOWED_TAGS)

@@ -143,16 +143,21 @@
 TAGS + %5B
+%0A    
 'h1', 'h
@@ -187,16 +187,44 @@
 h6', 'p'
+, 'dl', 'dt', 'dd', 'cite',%0A
 %5D%0A%0A%0Adef 

Add additional HTML tags to reST filter