forked from pool/python-Markdown
Compare commits
27 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| de6605bbca | |||
| e3c005830d | |||
| 0695aff0ff | |||
| a4b37d872b | |||
| 6feee112f6 | |||
| f307ad0975 | |||
| fd38e31626 | |||
| 4738bd322a | |||
| 0142136134 | |||
| 9cf6958d47 | |||
| 57080521f5 | |||
| 332a35be5e | |||
| f7c02c0b85 | |||
| 46514c9bbf | |||
| d09a3e6e64 | |||
| 0193a563ad | |||
| eaf8707cae | |||
| 2d42a03a66 | |||
| 5daa561e1e | |||
| dcdc2c70c4 | |||
| d6daaaf0cd | |||
| 4f1bd75d98 | |||
| 922a912ff1 | |||
| ec68754c9b | |||
| 30849af1cb | |||
| bdd43dead0 | |||
| 5db14d974b |
@@ -1,54 +0,0 @@
|
|||||||
From 15346cd3a73f108bf11c57907b32737f8365d6bd Mon Sep 17 00:00:00 2001
|
|
||||||
From: facelessuser <faceless.shop@gmail.com>
|
|
||||||
Date: Mon, 21 Jul 2025 08:56:43 -0600
|
|
||||||
Subject: [PATCH] Fix failing cases for Python 3.14
|
|
||||||
|
|
||||||
New change requires us to monkey patch `locatetagend` to prevent
|
|
||||||
capturing incomplete tags in code spans.
|
|
||||||
---
|
|
||||||
docs/changelog.md | 6 ++++++
|
|
||||||
markdown/htmlparser.py | 14 ++++++++++++++
|
|
||||||
2 files changed, 20 insertions(+)
|
|
||||||
|
|
||||||
Index: markdown-3.8.2/docs/changelog.md
|
|
||||||
===================================================================
|
|
||||||
--- markdown-3.8.2.orig/docs/changelog.md 2025-06-19 19:12:28.000000000 +0200
|
|
||||||
+++ markdown-3.8.2/docs/changelog.md 2025-08-12 21:13:46.980036183 +0200
|
|
||||||
@@ -10,6 +10,12 @@
|
|
||||||
[Python Version Specification]: https://packaging.python.org/en/latest/specifications/version-specifiers/.
|
|
||||||
See the [Contributing Guide](contributing.md) for details.
|
|
||||||
|
|
||||||
+## [Unreleased]
|
|
||||||
+
|
|
||||||
+### Fixed
|
|
||||||
+
|
|
||||||
+* Fix handling of incomplete HTML tags in code spans in Python 3.14.
|
|
||||||
+
|
|
||||||
## [3.8.2] - 2025-06-19
|
|
||||||
|
|
||||||
### Fixed
|
|
||||||
Index: markdown-3.8.2/markdown/htmlparser.py
|
|
||||||
===================================================================
|
|
||||||
--- markdown-3.8.2.orig/markdown/htmlparser.py 2025-06-19 19:12:28.000000000 +0200
|
|
||||||
+++ markdown-3.8.2/markdown/htmlparser.py 2025-08-12 21:13:46.980214669 +0200
|
|
||||||
@@ -69,6 +69,20 @@
|
|
||||||
)?
|
|
||||||
\s* # trailing whitespace
|
|
||||||
""", re.VERBOSE)
|
|
||||||
+htmlparser.locatetagend = re.compile(r"""
|
|
||||||
+ [a-zA-Z][^`\t\n\r\f />]* # tag name
|
|
||||||
+ [\t\n\r\f /]* # optional whitespace before attribute name
|
|
||||||
+ (?:(?<=['"\t\n\r\f /])[^`\t\n\r\f />][^\t\n\r\f /=>]* # attribute name
|
|
||||||
+ (?:= # value indicator
|
|
||||||
+ (?:'[^']*' # LITA-enclosed value
|
|
||||||
+ |"[^"]*" # LIT-enclosed value
|
|
||||||
+ |(?!['"])[^>\t\n\r\f ]* # bare value
|
|
||||||
+ )
|
|
||||||
+ )?
|
|
||||||
+ [\t\n\r\f /]* # possibly followed by a space
|
|
||||||
+ )*
|
|
||||||
+ >?
|
|
||||||
+""", re.VERBOSE)
|
|
||||||
|
|
||||||
# Match a blank line at the start of a block of text (two newlines).
|
|
||||||
# The newlines may be preceded by additional whitespace.
|
|
||||||
3
markdown-3.10.tar.gz
Normal file
3
markdown-3.10.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:37062d4f2aa4b2b6b32aefb80faa300f82cc790cb949a35b8caede34f2b68c0e
|
||||||
|
size 364931
|
||||||
BIN
markdown-3.8.2.tar.gz
LFS
BIN
markdown-3.8.2.tar.gz
LFS
Binary file not shown.
@@ -1,3 +1,34 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Nov 4 19:45:00 UTC 2025 - Benoît Monin <benoit.monin@gmx.fr>
|
||||||
|
|
||||||
|
- update to version 3.10:
|
||||||
|
* Officially support Python 3.14 and PyPy 3.11 and drop support
|
||||||
|
for Python 3.9 and PyPy 3.9.
|
||||||
|
* Fix an HTML comment parsing case in some Python versions that
|
||||||
|
can cause an infinite loop (#1554).
|
||||||
|
* Revert the default behavior of USE_DEFINITION_ORDER (to True).
|
||||||
|
The new behavior introduced in 3.9.0 is experimental and
|
||||||
|
results are inconsistent. It should not have been made the
|
||||||
|
default behavior (#1561).
|
||||||
|
- increase the minimum python version to 3.10 as required by
|
||||||
|
upstream
|
||||||
|
- stop requiring importlib-metadata:
|
||||||
|
it was only needed for python < 3.10
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Sep 5 15:36:45 UTC 2025 - Benoît Monin <benoit.monin@gmx.fr>
|
||||||
|
|
||||||
|
- update to version 3.9:
|
||||||
|
* Footnotes are now ordered by the occurrence of their references
|
||||||
|
in the document (#1367).
|
||||||
|
* Ensure inline processing iterates through elements in document
|
||||||
|
order (#1546).
|
||||||
|
* Fix handling of incomplete HTML tags in code spans in Python
|
||||||
|
3.14 (#1547).
|
||||||
|
- increase the minimum python version to 3.9 as required by
|
||||||
|
upstream
|
||||||
|
- drop fix-py314.patch: fixed upstream
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Aug 21 09:30:43 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
Thu Aug 21 09:30:43 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-Markdown
|
# spec file for package python-Markdown
|
||||||
#
|
#
|
||||||
# Copyright (c) 2025 SUSE LLC
|
|
||||||
# Copyright (c) 2025 SUSE LLC and contributors
|
# Copyright (c) 2025 SUSE LLC and contributors
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
@@ -33,7 +32,7 @@
|
|||||||
%endif
|
%endif
|
||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-Markdown%{psuffix}
|
Name: python-Markdown%{psuffix}
|
||||||
Version: 3.8.2
|
Version: 3.10
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Python implementation of Markdown
|
Summary: Python implementation of Markdown
|
||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
@@ -41,17 +40,12 @@ Group: Development/Languages/Python
|
|||||||
URL: https://python-markdown.github.io/
|
URL: https://python-markdown.github.io/
|
||||||
Source: https://files.pythonhosted.org/packages/source/m/markdown/markdown-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/m/markdown/markdown-%{version}.tar.gz
|
||||||
Patch0: markdown-3.0-python37.patch
|
Patch0: markdown-3.0-python37.patch
|
||||||
# PATCH-FIX-UPSTREAM fix-py314.patch gh#Python-Markdown/markdown#1547 mcepl@suse.com
|
BuildRequires: %{python_module base >= 3.10}
|
||||||
# Fix failing cases for Python 3.14
|
|
||||||
Patch1: fix-py314.patch
|
|
||||||
BuildRequires: %{python_module base >= 3.8}
|
|
||||||
BuildRequires: %{python_module importlib-metadata >= 4.4 if %python-base < 3.10}
|
|
||||||
BuildRequires: %{python_module pip}
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module setuptools >= 77.0}
|
BuildRequires: %{python_module setuptools >= 77.0}
|
||||||
BuildRequires: %{python_module wheel}
|
BuildRequires: %{python_module wheel}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: (python-importlib-metadata >= 4.4 if python-base < 3.10)
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%if %{with libalternatives}
|
%if %{with libalternatives}
|
||||||
BuildRequires: alts
|
BuildRequires: alts
|
||||||
|
|||||||
Reference in New Issue
Block a user