From ef810713a71fb72b9200b82e0658bac7bf2bec67 Mon Sep 17 00:00:00 2001 From: Chris Sewell Date: Mon, 11 Aug 2025 08:47:00 +0200 Subject: [PATCH 1/5] =?UTF-8?q?=F0=9F=9A=80=20RELEASE=20v4.0.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 15 +++++++++++++++ markdown_it/__init__.py | 2 +- markdown_it/port.yaml | 6 +++--- 3 files changed, 19 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1d02f42d..8822bf7c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,20 @@ # Change Log +## 4.0.0 - 2024-08-10 + +This primarily drops support for Python 3.9, adds support for Python 3.13, +and updates the parser to comply with Commonmark 0.31.2 and Markdown-It v14.1.0. + +* ⬆️ Drop support for Python 3.9 in [#360](https://github.com/executablebooks/markdown-it-py/pull/360) +* ⬆️ Comply with Commonmark 0.31.2 in [#362](https://github.com/executablebooks/markdown-it-py/pull/362) +* 👌 Improve performance of "text" inline rule in [#347](https://github.com/executablebooks/markdown-it-py/pull/347) +* 👌 Use `str.removesuffix` in [#348](https://github.com/executablebooks/markdown-it-py/pull/348) +* 👌 limit the number of autocompleted cells in a table in [#364](https://github.com/executablebooks/markdown-it-py/pull/364) +* 👌 fix quadratic complexity in reference parser in [#367](https://github.com/executablebooks/markdown-it-py/pull/367) +* 🐛 Fix emphasis inside raw links bugs in [#320](https://github.com/executablebooks/markdown-it-py/pull/320) + +**Full Changelog**: + ## 3.0.0 - 2023-06-03 ⚠️ This release contains some minor breaking changes in the internal API and improvements to the parsing strictness. diff --git a/markdown_it/__init__.py b/markdown_it/__init__.py index 399c6b70..9fac2795 100644 --- a/markdown_it/__init__.py +++ b/markdown_it/__init__.py @@ -1,6 +1,6 @@ """A Python port of Markdown-It""" __all__ = ("MarkdownIt",) -__version__ = "3.0.0" +__version__ = "4.0.0" from .main import MarkdownIt diff --git a/markdown_it/port.yaml b/markdown_it/port.yaml index 3e289e9e..ce2dde95 100644 --- a/markdown_it/port.yaml +++ b/markdown_it/port.yaml @@ -1,7 +1,7 @@ - package: markdown-it/markdown-it - version: 13.0.1 - commit: e843acc9edad115cbf8cf85e676443f01658be08 - date: May 3, 2022 + version: 14.1.0 + commit: 0fe7ccb4b7f30236fb05f623be6924961d296d3d + date: Mar 19, 2024 notes: - Rename variables that use python built-in names, e.g. - `max` -> `maximum` From 6487b23b70f91ffba28c05b3094c276130e3dac2 Mon Sep 17 00:00:00 2001 From: Chris Sewell Date: Mon, 11 Aug 2025 09:30:56 +0200 Subject: [PATCH 2/5] Update pyproject.toml --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 86353250..622bfdcc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -43,7 +43,7 @@ compare = [ "markdown-it-pyrs", ] linkify = ["linkify-it-py>=1,<3"] -plugins = ["mdit-py-plugins"] +plugins = ["mdit-py-plugins>=0.5.0"] rtd = [ "mdit-py-plugins", "myst-parser", From 6594a47eabdebe86af3c34dac33df77918997486 Mon Sep 17 00:00:00 2001 From: Chris Sewell Date: Mon, 11 Aug 2025 09:36:05 +0200 Subject: [PATCH 3/5] Update pyproject.toml --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 622bfdcc..2414f41d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -45,7 +45,7 @@ compare = [ linkify = ["linkify-it-py>=1,<3"] plugins = ["mdit-py-plugins>=0.5.0"] rtd = [ - "mdit-py-plugins", + "mdit-py-plugins>=0.5.0", "myst-parser", "pyyaml", "sphinx", From ed0fd1a8f5a3fed27a08ceb9eb0218c2ddc6e055 Mon Sep 17 00:00:00 2001 From: Chris Sewell Date: Mon, 11 Aug 2025 14:35:29 +0200 Subject: [PATCH 4/5] add conflict resolutuion --- .readthedocs.yml | 1 + docs/requirements.txt | 2 ++ 2 files changed, 3 insertions(+) create mode 100644 docs/requirements.txt diff --git a/.readthedocs.yml b/.readthedocs.yml index cb68e005..23749baf 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -7,6 +7,7 @@ build: python: install: + - requirements: docs/requirements.txt - method: pip path: . extra_requirements: diff --git a/docs/requirements.txt b/docs/requirements.txt new file mode 100644 index 00000000..e8ca9521 --- /dev/null +++ b/docs/requirements.txt @@ -0,0 +1,2 @@ +# temporary requirement until myst-parser is updated to accept markdown-it-py v4 +git+https://github.com/executablebooks/MyST-Parser.git@update-markdown-parser From 1dbe867014f0931045afc6f4164a24839abf75c1 Mon Sep 17 00:00:00 2001 From: Chris Sewell Date: Mon, 11 Aug 2025 14:44:37 +0200 Subject: [PATCH 5/5] Update requirements.txt --- docs/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/requirements.txt b/docs/requirements.txt index e8ca9521..b7938970 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -1,2 +1,2 @@ -# temporary requirement until myst-parser is updated to accept markdown-it-py v4 +# temporary requirement until myst-parser is updated to allow markdown-it-py v4 git+https://github.com/executablebooks/MyST-Parser.git@update-markdown-parser