def ajax_preview(request, **kwargs):
    """
    Currently only supports markdown
    """
    data = {
        "html": render_to_string("pinax/blog/_preview.html", {
            "content": parse(request.POST.get("markup"))
        })
    }
    return JsonResponse(data)
Currently only supports markdown