api.py 171 Bytes
Newer Older
1
2
from core.templatetags.renderer import markdown
from django.http import HttpResponse
3
4

def render_markdown(request):
5
    return HttpResponse(markdown(request.GET['text']))