test markdown view

This commit is contained in:
Élie Bouttier 2014-09-06 12:00:55 -07:00
parent 259bd91d07
commit 6aaf3cc0d8
2 changed files with 13 additions and 0 deletions

View file

@ -23,6 +23,7 @@ import shlex
####################
@login_required
@require_http_methods(["POST"])
def markdown_preview(request):
content = request.POST.get('data', '')
return HttpResponse(markdown_to_html(content))