From 78025edfb5ccacb74d284c4405eb595bc834a9fa Mon Sep 17 00:00:00 2001 From: Leon Anavi Date: Fri, 9 Oct 2020 13:35:34 +0300 Subject: python3-markdown: Upgrade 3.2.2 -> 3.3 Upgrade to release 3.3: - The prefix language- is now prepended to all language classes by default on code blocks. - Attribute Lists are more strict. - All Pygments' options are now available for syntax highlighting. - Fenced Code Blocks now work with Attribute Lists when syntax highlighting is disabled. Any random HTML attribute can be defined and set on the tag of fenced code blocks when the attr_list extension is enabled. - The HTML parser has been completely replaced. The new HTML parser is built on Python's html.parser.HTMLParser, which alleviates various bugs and simplify maintenance of the code. - The Markdown in HTML extension has been rebuilt on the new HTML Parser, which drastically simplifies it. Note that raw HTML elements with a markdown attribute defined are now converted to ElementTree Elements and are rendered by the serializer. Various bugs have been fixed. - Link reference parsing, abbreviation reference parsing and footnote reference parsing has all been moved from preprocessors to blockprocessors, which allows them to be nested within other block level elements. Specifically, this change was necessary to maintain the current behavior in the rebuilt Markdown in HTML extension. A few random edge-case bugs (see the included tests) were resolved in the process. - An alternate function markdown.extensions.headerid.slugify_unicode has been included with the Table of Contents extension which supports Unicode characters in table of contents slugs. The old markdown.extensions.headerid.slugify method which removes non-ASCII characters remains the default. Import and pass markdown.extensions.headerid.slugify_unicode to the slugify configuration option to use the new behavior. - Support was added for Python 3.9 and dropped for Python 3.5. - Document how to pass configuration options to Extra. - Fix HR which follows strong em. - Support short reference image links. - Avoid a RecursionError from deeply nested blockquotes. - Fix issues with complex emphasis. - Fix unescaping of HTML characters <> in CodeHilite. - Fix complex scenarios involving lists and admonitions. - Fix complex scenarios with nested ordered and unordered lists in a definition list. Signed-off-by: Leon Anavi Acked-by: Trevor Gamblin Signed-off-by: Khem Raj --- .../recipes-devtools/python/python3-markdown_3.2.2.bb | 14 -------------- .../recipes-devtools/python/python3-markdown_3.3.bb | 13 +++++++++++++ 2 files changed, 13 insertions(+), 14 deletions(-) delete mode 100644 meta-python/recipes-devtools/python/python3-markdown_3.2.2.bb create mode 100644 meta-python/recipes-devtools/python/python3-markdown_3.3.bb (limited to 'meta-python') diff --git a/meta-python/recipes-devtools/python/python3-markdown_3.2.2.bb b/meta-python/recipes-devtools/python/python3-markdown_3.2.2.bb deleted file mode 100644 index ce5dde63ea..0000000000 --- a/meta-python/recipes-devtools/python/python3-markdown_3.2.2.bb +++ /dev/null @@ -1,14 +0,0 @@ -SUMMARY = "A Python implementation of John Gruber's Markdown." -LICENSE = "BSD-3-Clause" -LIC_FILES_CHKSUM = "file://LICENSE.md;md5=745aaad0c69c60039e638bff9ffc59ed" - -inherit pypi setuptools3 - -PYPI_PACKAGE = "Markdown" -PYPI_SRC_URI = "https://files.pythonhosted.org/packages/44/30/cb4555416609a8f75525e34cbacfc721aa5b0044809968b2cf553fd879c7/Markdown-${PV}.tar.gz" -SRC_URI[md5sum] = "6e8daf1e566bf3572c137ada399fe40b" -SRC_URI[sha256sum] = "1fafe3f1ecabfb514a5285fca634a53c1b32a81cb0feb154264d55bf2ff22c17" - -BBCLASSEXTEND = "native" - -RDEPENDS_${PN} += "${PYTHON_PN}-logging ${PYTHON_PN}-setuptools" diff --git a/meta-python/recipes-devtools/python/python3-markdown_3.3.bb b/meta-python/recipes-devtools/python/python3-markdown_3.3.bb new file mode 100644 index 0000000000..db8311be5d --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-markdown_3.3.bb @@ -0,0 +1,13 @@ +SUMMARY = "A Python implementation of John Gruber's Markdown." +LICENSE = "BSD-3-Clause" +LIC_FILES_CHKSUM = "file://LICENSE.md;md5=745aaad0c69c60039e638bff9ffc59ed" + +inherit pypi setuptools3 + +PYPI_PACKAGE = "Markdown" +SRC_URI[md5sum] = "76eb34a058bb8b637ccadc4ce384bae4" +SRC_URI[sha256sum] = "4f4172a4e989b97f96860fa434b89895069c576e2b537c4b4eed265266a7affc" + +BBCLASSEXTEND = "native" + +RDEPENDS_${PN} += "${PYTHON_PN}-logging ${PYTHON_PN}-setuptools" -- cgit v1.2.3-54-g00ecf