adds markdown filter

This commit is contained in:
Joachim Lusiardi 2016-11-06 13:14:03 +01:00
parent bceb9181ee
commit 3f458937d9
2 changed files with 7 additions and 0 deletions

View File

@ -1,5 +1,6 @@
from app import app
import hashlib
import markdown
@app.template_filter('none_filter')
@ -20,3 +21,8 @@ def md5_filter(value):
@app.template_filter('str')
def str_filter(value):
return str(value)
@app.template_filter('markdown')
def md(value):
return markdown.markdown(value)

View File

@ -3,3 +3,4 @@ Flask-SQLAlchemy
Flask-Security
Flask-WTF
PyMySQL
markdown