mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-21 07:22:14 +00:00
Enable line break extension for single breaks in paragraphs by new lines.
Pass tests in ef3de607c3
This commit is contained in:
@@ -12,7 +12,7 @@ def markdown_filter(text, format='html'):
|
|||||||
# markdown library can't handle text=None
|
# markdown library can't handle text=None
|
||||||
if text is None:
|
if text is None:
|
||||||
return text
|
return text
|
||||||
html = markdown.markdown(text)
|
html = markdown.markdown(text, extensions=['markdown.extensions.nl2br'])
|
||||||
if format == 'html':
|
if format == 'html':
|
||||||
return mark_safe('<div class="markdown">' + html + '</div>')
|
return mark_safe('<div class="markdown">' + html + '</div>')
|
||||||
elif format == 'rml':
|
elif format == 'rml':
|
||||||
|
|||||||
Reference in New Issue
Block a user