Skip to content

Commit a6eb836

Browse files
author
Waylan Limberg
committed
1 parent e979279 commit a6eb836

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

dingus.py

+9
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,15 @@
1010
extensions.sort()
1111
extra.extensions.sort()
1212

13+
@route('/babelmark')
14+
def babelmark():
15+
""" Provide a hook for http://johnmacfarlane.net/babelmark2/ to use. """
16+
src = request.query.get('text', '')
17+
return {
18+
'name' : 'Python-Markdown',
19+
'version': markdown.version,
20+
'html' : markdown.markdown(src)
21+
}
1322

1423
@route('/dingus', method=('GET', 'POST'))
1524
def dingus():

0 commit comments

Comments
 (0)