diff --git a/hyde/ext/templates/jinja.py b/hyde/ext/templates/jinja.py index 86f5767..149317e 100644 --- a/hyde/ext/templates/jinja.py +++ b/hyde/ext/templates/jinja.py @@ -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) \ No newline at end of file + return template.render(context)