Enable line break extension for single breaks in paragraphs by new lines.

Pass tests in ef3de607c3
This commit is contained in:
Tom Price
2016-03-31 00:18:20 +01:00
parent ef3de607c3
commit 1773eb810f

View File

@@ -12,7 +12,7 @@ def markdown_filter(text, format='html'):
# markdown library can't handle text=None
if text is None:
return text
html = markdown.markdown(text)
html = markdown.markdown(text, extensions=['markdown.extensions.nl2br'])
if format == 'html':
return mark_safe('<div class="markdown">' + html + '</div>')
elif format == 'rml':