remove django-markdown and handle preview manually

This commit is contained in:
Élie Bouttier 2014-09-06 00:39:50 -07:00
parent 4995c19560
commit 7e3173c7c0
32 changed files with 335 additions and 16478 deletions

View file

@ -5,7 +5,9 @@ from django.contrib.auth.decorators import login_required
from django.views.decorators.http import require_http_methods
from django.conf import settings
from django.core.urlresolvers import reverse
from django.http import HttpResponse
from tracker.utils import markdown_to_html
from tracker.forms import *
from tracker.models import *
from tracker.notifications import *
@ -16,6 +18,16 @@ from permissions.decorators import project_perm_required
import shlex
####################
# Markdown preview #
####################
@login_required
def markdown_preview(request):
content = request.POST.get('data', '')
return HttpResponse(markdown_to_html(content))
#########
# Admin #
#########