[ckan-changes] [ckan/ckan] 2bd137: Replace markdown library with python-markdown

GitHub noreply at github.com
Tue Dec 1 19:59:00 UTC 2015


  Branch: refs/heads/replace-markdown-lib
  Home:   https://github.com/ckan/ckan
  Commit: 2bd13792a561d9dc38681e95443f63f1255944f9
      https://github.com/ckan/ckan/commit/2bd13792a561d9dc38681e95443f63f1255944f9
  Author: Ross Jones <ross at servercode.co.uk>
  Date:   2015-12-01 (Tue, 01 Dec 2015)

  Changed paths:
    M CHANGELOG.rst
    M ckan/lib/helpers.py
    M ckan/tests/legacy/misc/test_format_text.py
    M ckan/tests/legacy/models/test_package.py
    M ckan/tests/lib/test_helpers.py
    M requirements.txt

  Log Message:
  -----------
  Replace markdown library with python-markdown

Replaces the previous markdown renderer that was problematic (and
unmaintained) with the more widely used python-markdown.

As python-markdown has deprecated the safe_mode for removing HTML, this
PR also contains bleach to strip out any HTML provided - as recommended
by the python-markdown docs.

The only noticeable change in rendering is that the previous library
inserted a newline before a closing p tag, which python-markdown doesn't
do.  This is unlikely to change how the content is rendered.




More information about the ckan-changes mailing list