1. Jesper Nøhr
  2. hg-website-test

Source

hg-website-test / filters.py

1
2
3
4
5
6
7
import markdown as _markdown
from jinja2 import Markup

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

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