view filters.py @ 347:871e9821b5b9

remove python requirement from main page, moving to downloads page There was some discussion of this on mercurial@selenic.com, but with no consensus. Since none of the leading binary packages on the web site (unix-like distros excepted) require a separate Python installation, I preferred the idea of simply not mentioning the requirement at the main page. I've moved it to the downloads page, which allows us to explicate a bit more as well.
author David Champion <dgc@uchicago.edu>
date Sun, 21 Nov 2010 00:22:46 -0600
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))