pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/textproc/py-markdown py-markdown: update to 3.2.2.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/bcaeb50712cf
branches:  trunk
changeset: 768836:bcaeb50712cf
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Mon Nov 01 21:43:46 2021 +0000

description:
py-markdown: update to 3.2.2.

# Python-Markdown 3.2 Release Notes

Python-Markdown version 3.2 supports Python versions 3.5, 3.6, 3.7, 3.8, and
PyPy3.

### Drop support for Python 2.7

Python 2.7 reaches end-of-life on 2020-01-01 and Python-Markdown 3.2 has dropped
support for it. Please upgrade to Python 3, or use Python-Markdown 3.1.

### `em` and `strong` inline processor changes

In order to fix issue #792, `em`/`strong` inline processors were refactored. This
translated into removing many of the existing inline processors that handled this
logic:

* `em_strong`
* `strong`
* `emphasis`
* `strong2`
* `emphasis`

These processors were replaced with two new ones:

* `em_strong`
* `em_strong2`

The [`legacy_em`](../extensions/legacy_em.md) extension was also modified with new,
refactored logic and simply overrides the `em_strong2` inline processor.

### CodeHilite now always wraps with `<code>` tags

Before, the HTML generated by CodeHilite looked like:
- `<pre><code>foo = 'bar'</code></pre>` if you **were not** using Pygments.
- `<pre>foo = 'bar'</pre>`  if you **were** using Pygments.

To make the cases more consistent (and adhere to many Markdown specifications and
HTML code block markup suggestions), CodeHilite will now always additionally wrap
code with `<code>` tags. See #862 for more details.

This change does not alter the Python-Markdown API, but users relying on the old
markup will find their output now changed.

Internally, this change relies on the Pygments 2.4, so you must be using at least
that version to see this effect. Users with earlier Pygments versions will
continue to see the old behavior.

### `markdown.util.etree` deprecated

Previously, Python-Markdown was using either the `xml.etree.cElementTree` module
or the `xml.etree.ElementTree` module, based on their availability. In modern
Python versions, the former is a deprecated alias for the latter. Thus, the
compatibility layer is deprecated and extensions are advised to use
`xml.etree.ElementTree` directly. Importing `markdown.util.etree` will raise
a `DeprecationWarning` beginning in version 3.2 and may be removed in a future
release.

Therefore, extension developers are encouraged to replace
`from markdown.util import etree` with
`import xml.etree.ElementTree as etree` in their code.

## New features

The following new features have been included in the release:

* Some new configuration options have been added to the [toc](../extensions/toc.md)
  extension:

    * The `anchorlink_class` and `permalink_class` options allow class(es) to be
      assigned to the `anchorlink` and `permalink` respectively. This allows using
      icon fonts from CSS for the links. Therefore, an empty string passed to
      `permalink` now generates an empty `permalink`. Previously no `permalink`
      would have been generated. (#776)

    * The `permalink_title` option allows the title attribute of a `permalink` to be
      set to something other than the default English string `Permanent link`. (#877)

* Document thread safety (#812).

* Markdown parsing in HTML has been exposed via a separate extension called
  [`md_in_html`](../extensions/md_in_html.md).

* Add support for Python 3.8.

diffstat:

 textproc/py-markdown/Makefile |  4 ++--
 textproc/py-markdown/PLIST    |  5 ++++-
 textproc/py-markdown/distinfo |  8 ++++----
 3 files changed, 10 insertions(+), 7 deletions(-)

diffs (44 lines):

diff -r 6d74f0dc56cb -r bcaeb50712cf textproc/py-markdown/Makefile
--- a/textproc/py-markdown/Makefile     Mon Nov 01 21:42:10 2021 +0000
+++ b/textproc/py-markdown/Makefile     Mon Nov 01 21:43:46 2021 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.22 2021/11/01 21:06:35 wiz Exp $
+# $NetBSD: Makefile,v 1.23 2021/11/01 21:43:46 wiz Exp $
 
-DISTNAME=      Markdown-3.1.1
+DISTNAME=      Markdown-3.2.2
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME:tl}
 CATEGORIES=    textproc python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=M/Markdown/}
diff -r 6d74f0dc56cb -r bcaeb50712cf textproc/py-markdown/PLIST
--- a/textproc/py-markdown/PLIST        Mon Nov 01 21:42:10 2021 +0000
+++ b/textproc/py-markdown/PLIST        Mon Nov 01 21:43:46 2021 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.9 2019/05/21 08:26:21 adam Exp $
+@comment $NetBSD: PLIST,v 1.10 2021/11/01 21:43:46 wiz Exp $
 bin/markdown_py${PYVERSSUFFIX}
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
 ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
@@ -57,6 +57,9 @@
 ${PYSITELIB}/markdown/extensions/legacy_em.py
 ${PYSITELIB}/markdown/extensions/legacy_em.pyc
 ${PYSITELIB}/markdown/extensions/legacy_em.pyo
+${PYSITELIB}/markdown/extensions/md_in_html.py
+${PYSITELIB}/markdown/extensions/md_in_html.pyc
+${PYSITELIB}/markdown/extensions/md_in_html.pyo
 ${PYSITELIB}/markdown/extensions/meta.py
 ${PYSITELIB}/markdown/extensions/meta.pyc
 ${PYSITELIB}/markdown/extensions/meta.pyo
diff -r 6d74f0dc56cb -r bcaeb50712cf textproc/py-markdown/distinfo
--- a/textproc/py-markdown/distinfo     Mon Nov 01 21:42:10 2021 +0000
+++ b/textproc/py-markdown/distinfo     Mon Nov 01 21:43:46 2021 +0000
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.16 2021/10/26 11:23:07 nia Exp $
+$NetBSD: distinfo,v 1.17 2021/11/01 21:43:46 wiz Exp $
 
-BLAKE2s (Markdown-3.1.1.tar.gz) = 8f5f94ca4e6b38ba0bcb455a88a3539f469317a7ea01175e47ead3cafbae917e
-SHA512 (Markdown-3.1.1.tar.gz) = 78f089f2eef5c73d683ac96fd20c87145e243d12b0f230b9b0228b995035fbb084dde40be788679c63637f05956487ad520cc9dd61d133926bf13521aa600090
-Size (Markdown-3.1.1.tar.gz) = 294136 bytes
+BLAKE2s (Markdown-3.2.2.tar.gz) = 66b3f1cfc741330c43f178471bcf5a70f1cd41407f31b919e4da0925db8d6049
+SHA512 (Markdown-3.2.2.tar.gz) = 72ce79b0daed4df2d09a458dad24da3e303143307640fb15d15cb10edc6c641d422dcf5043380c1572c4b9ed8f5fc11ec52e28928d8215d687309e4ce9ae3d7c
+Size (Markdown-3.2.2.tar.gz) = 299658 bytes



Home | Main Index | Thread Index | Old Index