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

GitHub noreply at github.com
Tue Dec 1 16:02:36 UTC 2015


  Branch: refs/heads/replace-markdown-lib
  Home:   https://github.com/ckan/ckan
  Commit: fb892d58d7ab58c72f1431590607f6797450b649
      https://github.com/ckan/ckan/commit/fb892d58d7ab58c72f1431590607f6797450b649
  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