|
|
@@ -133,6 +133,8 @@ def markdown(env, value): |
|
|
|
d['extension_configs'] = getattr(env.config.markdown, |
|
|
|
'extension_configs', |
|
|
|
Expando({})).to_dict() |
|
|
|
if hasattr(env.config.markdown, 'output_format'): |
|
|
|
d['output_format'] = env.config.markdown.output_format |
|
|
|
marked = md.Markdown(**d) |
|
|
|
|
|
|
|
return marked.convert(output) |
|
|
@@ -797,4 +799,4 @@ class Jinja2Template(Template): |
|
|
|
Renders the given text using the context |
|
|
|
""" |
|
|
|
template = self.env.from_string(text) |
|
|
|
return template.render(context) |
|
|
|
return template.render(context) |