summaryrefslogtreecommitdiffstats
path: root/_filters/markdown_template.py
blob: c572efa3ef41755b3c59aa2deaafe228e129cf27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import markdown
import logging

config = {
    'name': "Markdown",
    'description': "Renders markdown formatted text to HTML",
    'aliases': ['markdown']
    }


#Markdown logging is noisy, pot it down:
logging.getLogger("MARKDOWN").setLevel(logging.ERROR)


def run(content):
    return markdown.markdown(content)