Sith/core/views/api.py

6 lines
171 B
Python

from core.templatetags.renderer import markdown
from django.http import HttpResponse
def render_markdown(request):
return HttpResponse(markdown(request.GET['text']))