Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/checklistfabrik/core/markdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,10 @@ def create_markdown():
plugins=['strikethrough', 'table', 'speedup'],
)

# The Markdown is template text, filled with facts the same person enters in the
# local dashboard, and raw HTML in it is rendered on purpose. The server listens
# on 127.0.0.1 only.
def clf_markdown(text):
return markupsafe.Markup(render(text))
return markupsafe.Markup(render(text)) # nosec B704

return clf_markdown
3 changes: 2 additions & 1 deletion tests/test_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@

def _export_kwargs(**extra):
"""Build the kwargs a task module receives while exporting."""
env = jinja2.Environment(autoescape=False)
# Autoescape off, like the environment of `export.document`; each exporter escapes.
env = jinja2.Environment(autoescape=False) # nosec B701
base = {
'clf_jinja_env': env,
'clf_jinja_env_plain': env,
Expand Down