Ticket #6182: markdown2.patch
File markdown2.patch, 1.0 KB (added by , 17 years ago) |
---|
-
django/contrib/markup/templatetags/markup.py
50 50 51 51 """ 52 52 try: 53 import markdown 53 import markdown2 as markdown 54 54 except ImportError: 55 if settings.DEBUG: 56 raise template.TemplateSyntaxError, "Error in {% markdown %} filter: The Python markdown library isn't installed." 57 return force_unicode(value) 55 try: 56 import markdown 57 except ImportError: 58 if settings.DEBUG: 59 raise template.TemplateSyntaxError, "Error in {% markdown %} filter: Neither the Python markdown or markdown2 library is installed." 60 return force_unicode(value) 58 61 else: 59 62 # markdown.version was first added in 1.6b. The only version of markdown 60 63 # to fully support extensions before 1.6b was the shortlived 1.6a.