Exemple #1
0
 def get_content(self):
     return mark_safe(urlize(markdown.markdown(self.body, safe_mode='escape')))
Exemple #2
0
def markdown_preview(request):
    data = request.POST.get('data', '')
    data = urlize(markdown.markdown(data, safe_mode='escape'))
    return {'data': data}
Exemple #3
0
def markdown_preview(request):
    data = request.POST.get('data', '')
    data = urlize(markdown.markdown(data, safe_mode='escape'))
    return {'data': data}
Exemple #4
0
 def get_content(self):
     return mark_safe(
         urlize(markdown.markdown(self.body, safe_mode='escape')))