Ticket #6526: 6526-mardown-html-removed-text.diff

File 6526-mardown-html-removed-text.diff, 660 bytes (added by Timothée Peignier <tim@…>, 7 years ago)

Adding settings to customize markdown remove text

  • django/contrib/markup/templatetags/markup.py

     
    6666            else:
    6767                safe_mode = False
    6868
     69            if settings.MARKDOWN_HTML_REMOVED_TEXT:
     70                markdown.HTML_REMOVED_TEXT = settings.MARKDOWN_HTML_REMOVED_TEXT
     71
    6972            # Unicode support only in markdown v1.7 or above. Version_info
    7073            # exist only in markdown v1.6.2rc-2 or above.
    7174            if getattr(markdown, "version_info", None) < (1,7):
Back to Top