test markdown view
This commit is contained in:
parent
259bd91d07
commit
6aaf3cc0d8
2 changed files with 13 additions and 0 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue