Ticket #7678: markdown_unicode_fix.diff

File markdown_unicode_fix.diff, 799 bytes (added by anonymous, 16 years ago)
  • django/contrib/markup/templatetags/markup.py

     
    6565                safe_mode = True
    6666            else:
    6767                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)))
    6969        else:
    70             return mark_safe(force_unicode(markdown.markdown(smart_str(value))))
     70            return mark_safe(force_unicode(markdown.markdown(value)))
    7171markdown.is_safe = True
    7272
    7373def restructuredtext(value):
Back to Top