Some optimizations for the markdown func.

This commit is contained in:
A. Svensson 2015-05-24 14:51:33 +02:00
parent 526e299731
commit 4b244434c6

View File

@ -9,7 +9,11 @@ from django.conf import settings
def markdown(text): def markdown(text):
# In case I would ever switch to some other markdown lib. # In case I would ever switch to some other markdown lib.
return md.markdown(text) return md.markdown(
text,
extensions=['markdown.extensions.nl2br'],
output_format='html5',
)
def load_readme(): def load_readme():
'''Read the contents of the project README and return it as markdown html.''' '''Read the contents of the project README and return it as markdown html.'''