diff --git a/plugins/talks.py b/plugins/talks.py index 231b8d6..5da0cd3 100644 --- a/plugins/talks.py +++ b/plugins/talks.py @@ -11,6 +11,7 @@ import re import datetime import shutil import time +import markdown from docutils import nodes from docutils.parsers.rst import directives, Directive @@ -129,6 +130,9 @@ jinja_env = jinja2.Environment( loader=jinja2.FileSystemLoader(os.path.join(TALKS_PATH, '_templates')), autoescape=True, ) +jinja_env.filters['markdown'] = lambda text: \ + jinja2.Markup(markdown.Markdown(extensions=['meta']). + convert(text)) class TalkListDirective(Directive): diff --git a/talks/_templates/talk.html b/talks/_templates/talk.html index 55f35a4..560a1f4 100644 --- a/talks/_templates/talk.html +++ b/talks/_templates/talk.html @@ -11,7 +11,7 @@
Stanza {{ room }}
{% endif %} -