Ticket #7678: markdown_unicode_fix.diff
File markdown_unicode_fix.diff, 799 bytes (added by , 16 years ago) |
---|
-
django/contrib/markup/templatetags/markup.py
65 65 safe_mode = True 66 66 else: 67 67 safe_mode = False 68 return mark_safe(force_unicode(markdown.markdown( smart_str(value), extensions, safe_mode=safe_mode)))68 return mark_safe(force_unicode(markdown.markdown(value, extensions, safe_mode=safe_mode))) 69 69 else: 70 return mark_safe(force_unicode(markdown.markdown( smart_str(value))))70 return mark_safe(force_unicode(markdown.markdown(value))) 71 71 markdown.is_safe = True 72 72 73 73 def restructuredtext(value):