Skip to content

Commit

Permalink
fix a jinja2 deprecation before it falls on our heads
Browse files Browse the repository at this point in the history
  • Loading branch information
haraldschilly committed Jul 21, 2021
1 parent 72f01c4 commit 338c441
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions render.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def render_task(arg):
os.link(src, dst)


@j2.contextfilter
@j2.pass_context
def filter_prefix(ctx, link):
"""
Prepend level-times "../" to the given string.
Expand All @@ -126,7 +126,7 @@ def filter_prefix(ctx, link):
md = markdown.Markdown()


@j2.evalcontextfilter
@j2.pass_eval_context
def filter_markdown(eval_ctx, text):
if eval_ctx.autoescape:
return md.convert(j2.escape(text))
Expand Down

0 comments on commit 338c441

Please sign in to comment.