From 1773eb810fe900060cb41b3a3905ed24c19c1c97 Mon Sep 17 00:00:00 2001 From: Tom Price Date: Thu, 31 Mar 2016 00:18:20 +0100 Subject: [PATCH] Enable line break extension for single breaks in paragraphs by new lines. Pass tests in ef3de607c39bb1a8152dcfa8974e68ae56a24a6d --- RIGS/templatetags/markdown_tags.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RIGS/templatetags/markdown_tags.py b/RIGS/templatetags/markdown_tags.py index 9abd1054..4b761da2 100644 --- a/RIGS/templatetags/markdown_tags.py +++ b/RIGS/templatetags/markdown_tags.py @@ -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('
' + html + '
') elif format == 'rml':