mirror of
https://github.com/aljazceru/CTFd.git
synced 2025-12-18 22:44:24 +01:00
Adding a markdown filter for Jinja2 (#272)
In addition to adding markdown in Pages it makes sense to have a Jinja2 markdown filter for themes.
This commit is contained in:
@@ -96,6 +96,7 @@ def init_errors(app):
|
||||
|
||||
|
||||
def init_utils(app):
|
||||
app.jinja_env.filters['markdown'] = markdown
|
||||
app.jinja_env.filters['unix_time'] = unix_time
|
||||
app.jinja_env.filters['unix_time_millis'] = unix_time_millis
|
||||
app.jinja_env.filters['long2ip'] = long2ip
|
||||
|
||||
Reference in New Issue
Block a user