From 5e41cabdcf169e070d0fa5b851b639d79b88e565 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Thu, 8 Jun 2017 10:25:23 +0100 Subject: [PATCH] Autoescape --- md_pdf/build/jinja.py | 1 + 1 file changed, 1 insertion(+) diff --git a/md_pdf/build/jinja.py b/md_pdf/build/jinja.py index ed8f9cc..d5f0687 100644 --- a/md_pdf/build/jinja.py +++ b/md_pdf/build/jinja.py @@ -3,6 +3,7 @@ from jinja2 import Environment def render_content(content, context): env = Environment( + autoescape=True, trim_blocks=True, lstrip_blocks=True, extensions=[