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

GitHub noreply at github.com
Wed Dec 9 12:13:00 UTC 2015


  Branch: refs/heads/release-v2.5.0
  Home:   https://github.com/ckan/ckan
  Commit: f15848ed1171fa84e158de40198e7224f9fc14ea
      https://github.com/ckan/ckan/commit/f15848ed1171fa84e158de40198e7224f9fc14ea
  Author: Ross Jones <ross at servercode.co.uk>
  Date:   2015-12-09 (Wed, 09 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.


  Commit: 983f4b0cc9dcd757241824d5ff34edf8e520db1c
      https://github.com/ckan/ckan/commit/983f4b0cc9dcd757241824d5ff34edf8e520db1c
  Author: Ross Jones <ross at servercode.co.uk>
  Date:   2015-12-09 (Wed, 09 Dec 2015)

  Changed paths:
    M requirements.txt

  Log Message:
  -----------
  Include ordereddict for 2.6


  Commit: 4f26043cf8054d5b66b0fe98c0a976086d8fd694
      https://github.com/ckan/ckan/commit/4f26043cf8054d5b66b0fe98c0a976086d8fd694
  Author: Ross Jones <ross at servercode.co.uk>
  Date:   2015-12-09 (Wed, 09 Dec 2015)

  Changed paths:
    M requirements.in
    M requirements.txt

  Log Message:
  -----------
  Use a more recent version of python-markdown that still claims to support Python 2.6


  Commit: 1f1f0239d78e776aec9a094fc821788affbee686
      https://github.com/ckan/ckan/commit/1f1f0239d78e776aec9a094fc821788affbee686
  Author: amercader <amercadero at gmail.com>
  Date:   2015-12-09 (Wed, 09 Dec 2015)

  Changed paths:
    M ckan/controllers/error.py

  Log Message:
  -----------
  [#2770] Return default error page on fanstatic errors


Compare: https://github.com/ckan/ckan/compare/dd76971d1bac...1f1f0239d78e


More information about the ckan-changes mailing list