view filters.py @ 343:b2a8c4590630

base: Add notice about Python included in binary packages Also: - Reorder "Requirements" to end, "Another OS?" first - Remove unneeded 'class="typeface-js"' - Remove html comment about Python version requirement - Link "Python 2.4" to python.org instead of "get python" text (which is removed) - Capitalize "Mercurial"
author Adrian Buehlmann <adrian@cadifra.com>
date Fri, 19 Nov 2010 18:27:57 +0100
parents 3e6869f76b8d
children
line wrap: on
line source

import markdown as _markdown
from jinja2 import Markup

md = _markdown.Markdown(extensions=['toc'], safe_mode=False)

def mdown(value):
    return Markup(md.convert(value))