Ticket #5663: markdown_1.6b.2.diff
File markdown_1.6b.2.diff, 996 bytes (added by , 17 years ago) |
---|
-
django/contrib/markup/templatetags/markup.py
66 66 else: 67 67 safe_mode = False 68 68 69 # Unicode support only in markdown v1.7 or above. Version_info 70 # exist only in markdown v1.6.2rc-2 or above. 71 if getattr(markdown, "version_info", None) < (1,7): 72 return mark_safe(force_unicode(markdown.markdown(smart_str(value), extensions, safe_mode=safe_mode))) 73 else: 74 return mark_safe(markdown.markdown(force_unicode(value), extensions, safe_mode=safe_mode)) 69 return mark_safe(markdown.markdown(force_unicode(value), extensions, safe_mode=safe_mode)) 75 70 else: 76 71 return mark_safe(force_unicode(markdown.markdown(smart_str(value)))) 77 72 markdown.is_safe = True