"""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', 'dl', 'dt', 'dd', 'cite',
]


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)

"""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)

--- 
+++ 
@@ -5,7 +5,9 @@
 
 __all__ = 'rst_to_html'
 
-_ALLOWED_TAGS = bleach.ALLOWED_TAGS + ['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'p']
+_ALLOWED_TAGS = bleach.ALLOWED_TAGS + [
+    'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'p', 'dl', 'dt', 'dd', 'cite',
+]
 
 
 def rst_to_html(value):
Add additional HTML tags to reST filter
