mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-19 22:42:17 +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
|
||||
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':
|
||||
|
||||
Reference in New Issue
Block a user