mitsuhiko/flask — pull request #451 by SimonSapin (2012-03-19 00:03:37+00:00)
Title: Add app.add_template_filter(…, safe=True)

Allow an existing function returning HTML to be used as a "safe" filter without adding a "def" just to wrap the results in `Markup`. Example:

from markdown import markdown
app.add_template_filter(markdown, safe=True)