Compare commits

1 Commits
main ... 1.1

6 changed files with 17 additions and 177 deletions

BIN
Markdown-3.4.4.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@@ -1,3 +0,0 @@
<multibuild>
<package>test</package>
</multibuild>

View File

@@ -1,10 +1,6 @@
--- --- Markdown-3.0/tests/test_legacy.py.orig 2018-10-18 20:59:01.521952070 +0200
tests/test_legacy.py | 1 + +++ Markdown-3.0/tests/test_legacy.py 2018-10-18 20:59:20.746395446 +0200
1 file changed, 1 insertion(+) @@ -29,6 +29,7 @@
--- a/tests/test_legacy.py
+++ b/tests/test_legacy.py
@@ -28,6 +28,7 @@ warnings.simplefilter('error')
# Except for the warnings that shouldn't # Except for the warnings that shouldn't
warnings.filterwarnings('default', category=PendingDeprecationWarning) warnings.filterwarnings('default', category=PendingDeprecationWarning)
warnings.filterwarnings('default', category=DeprecationWarning, module='markdown') warnings.filterwarnings('default', category=DeprecationWarning, module='markdown')

BIN
markdown-3.8.2.tar.gz (Stored with Git LFS)

Binary file not shown.

View File

@@ -1,138 +1,3 @@
-------------------------------------------------------------------
Thu Jun 19 19:01:44 UTC 2025 - Benoît Monin <benoit.monin@gmx.fr>
- update to version 3.8.2:
* Fix codecs deprecation in Python 3.14.
* Fix issue with unclosed comment parsing in Python 3.14.
* Fix issue with unclosed declarations in Python 3.14.
* Fix issue with unclosed HTML tag <foo and Python 3.14.
-------------------------------------------------------------------
Wed Jun 18 16:36:45 UTC 2025 - Benoît Monin <benoit.monin@gmx.fr>
- update to version 3.8.1:
* Ensure incomplete markup declaration in raw HTML doesnt crash
parser (#1534).
* Fixed dropped content in md_in_html (#1526).
* Fixed HTML handling corner case that prevented some content
from not being rendered (#1528).
-------------------------------------------------------------------
Fri Apr 11 20:28:38 UTC 2025 - Benoît Monin <benoit.monin@gmx.fr>
- update to version 3.8:
* Changed
+ DRY fix in abbr extension by introducing method
create_element (#1483).
+ Clean up test directory by removing some redundant tests and
port non-redundant cases to the newer test framework.
+ Improved performance of the raw HTML post-processor (#1510).
* Fixed
+ Backslash Unescape IDs set via attr_list on toc (#1493).
+ Ensure md_in_html processes content inside “markdown” blocks
as they are parsed outside of “markdown” blocks to keep
things more consistent for third-party extensions (#1503).
+ md_in_html handle tags within inline code blocks better
(#1075).
+ md_in_html fix handling of one-liner block HTML handling
(#1074).
+ Ensure <center> is treated like a block-level element
(#1481).
+ Ensure that abbr extension respects AtomicString and does not
process perceived abbreviations in these strings (#1512).
+ Ensure smarty extension correctly renders nested closing
quotes (#1514).
-------------------------------------------------------------------
Tue Apr 1 11:32:19 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Make the metadata directory name case-insensitive.
-------------------------------------------------------------------
Tue Mar 25 03:13:19 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Lowercase metadata directory name.
-------------------------------------------------------------------
Sat Aug 17 10:27:01 UTC 2024 - Benoît Monin <benoit.monin@gmx.fr>
- update to version 3.7:
* Changed
+ Refactor abbr Extension
* Fixed
+ Fixed links to source code on GitHub from the documentation
(#1453).
- rename source tarball to markdown to match upstream
-------------------------------------------------------------------
Mon Aug 12 14:47:54 UTC 2024 - Matej Cepl <mcepl@cepl.eu>
- Split the package into multibuild with tests separate (to
separate PyYAML dependency).
-------------------------------------------------------------------
Fri Mar 15 19:46:03 UTC 2024 - Benoît Monin <benoit.monin@gmx.fr>
- update to version 3.6:
* Changed
+ Refactor TOC Sanitation
* Fixed
+ Include scripts/*.py in the generated source tarballs (#1430)
+ Ensure lines after heading in loose list are properly
detabbed (#1443).
+ Give smarty tree processor higher priority than toc (#1440).
+ Permit carets (^) and square brackets (]) but explicitly
exclude backslashes (\) from abbreviations (#1444).
+ In attribute lists (attr_list, fenced_code), quoted attribute
values are now allowed to contain curly braces (}) (#1414).
-------------------------------------------------------------------
Thu Jan 11 21:37:02 UTC 2024 - Benoît Monin <benoit.monin@gmx.fr>
- update to version 3.5.2:
* Fix type annotations for convertFile - it accepts only
bytes-based buffers. Also remove legacy checks from Python 2
(#1400)
* Remove legacy import needed only in Python 2 (#1403)
* Fix typo that left the attribute
AdmonitionProcessor.content_indent unset (#1404)
* Fix edge-case crash in InlineProcessor with AtomicString
(#1406).
* Fix edge-case crash in codehilite with an empty code tag
(#1405).
* Improve and expand type annotations in the code base (#1401).
* Fix handling of bogus comments (#1425).
-------------------------------------------------------------------
Wed Nov 1 20:56:04 UTC 2023 - Benoît Monin <benoit.monin@gmx.fr>
- update to version 3.5.1:
* Fix a performance problem with HTML extraction where large HTML
input could trigger quadratic line counting behavior (#1392).
* Improve and expand type annotations in the code base (#1394).
-------------------------------------------------------------------
Sun Oct 8 13:54:25 UTC 2023 - Benoît Monin <benoit.monin@gmx.fr>
- update to version 3.5:
* Added:
+ Add permalink_leading configuration option to the toc
extension (#1339)
* Changed:
+ Add support for cPython version 3.12 (and PyPy 3.10) and drop
support for Python version 3.7 (#1357).
+ Refactor changelog to use the format defined at
https://keepachangelog.com/.
+ Update the list of empty HTML tags (#1353).
+ Add customizable TOC title class to TOC extension (#1293).
+ Add API documentation of the code base which is generated by
mkdocstrings (#1220).
* Fixed:
+ Fix a corner case in admonitions where if an indented code
block was provided as the first block, the output would be
malformed (#1329).
- set the minimum python version to 3.8
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Jul 25 19:12:12 UTC 2023 - Benoît Monin <benoit.monin@gmx.fr> Tue Jul 25 19:12:12 UTC 2023 - Benoît Monin <benoit.monin@gmx.fr>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-Markdown # spec file for package python-Markdown
# #
# Copyright (c) 2025 SUSE LLC # Copyright (c) 2023 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -17,38 +17,28 @@
%{?sle15_python_module_pythons} %{?sle15_python_module_pythons}
%global flavor @BUILD_FLAVOR@%{nil} Name: python-Markdown
%if "%{flavor}" == "test" Version: 3.4.4
%define psuffix -test
%bcond_without test
%endif
%if "%{flavor}" == ""
%define psuffix %{nil}
%bcond_with test
%endif
Name: python-Markdown%{psuffix}
Version: 3.8.2
Release: 0 Release: 0
Summary: Python implementation of Markdown Summary: Python implementation of Markdown
License: BSD-3-Clause License: BSD-3-Clause
Group: Development/Languages/Python 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
BuildRequires: %{python_module base >= 3.8} BuildRequires: %{python_module PyYAML}
BuildRequires: %{python_module base >= 3.7}
BuildRequires: %{python_module importlib-metadata >= 4.4 if %python-base < 3.10} BuildRequires: %{python_module importlib-metadata >= 4.4 if %python-base < 3.10}
BuildRequires: %{python_module pip} BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel} BuildRequires: %{python_module wheel}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
%if %{with test} %if 0%{?python_version_nodots} < 310
BuildRequires: %{python_module Markdown = %{version}} Requires: python-importlib-metadata >= 4.4
BuildRequires: %{python_module PyYAML}
%endif %endif
Requires: (python-importlib-metadata >= 4.4 if python-base < 3.10)
Requires(post): update-alternatives Requires(post): update-alternatives
Requires(postun): update-alternatives Requires(postun):update-alternatives
BuildArch: noarch BuildArch: noarch
%python_subpackages %python_subpackages
@@ -60,27 +50,20 @@ on what exactly is supported and what is not. Additional features are
supported by the [Available Extensions][]. supported by the [Available Extensions][].
%prep %prep
%autosetup -p1 -n markdown-%{version} %autosetup -p1 -n Markdown-%{version}
%build %build
%if %{without test}
%pyproject_wheel %pyproject_wheel
%endif
%install %install
%if %{without test}
%pyproject_install %pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%python_clone -a %{buildroot}%{_bindir}/markdown_py %python_clone -a %{buildroot}%{_bindir}/markdown_py
%endif
%check %check
%if %{with test}
%pyunittest discover -v %pyunittest discover -v
%endif
%if %{without test}
%post %post
%python_install_alternative markdown_py %python_install_alternative markdown_py
@@ -91,8 +74,7 @@ supported by the [Available Extensions][].
%license LICENSE.md %license LICENSE.md
%doc README.md docs/* %doc README.md docs/*
%python_alternative %{_bindir}/markdown_py %python_alternative %{_bindir}/markdown_py
%{python_sitelib}/Markdown-%{version}*-info
%{python_sitelib}/markdown %{python_sitelib}/markdown
%{python_sitelib}/[mM]arkdown-%{version}.dist-info
%endif
%changelog %changelog