From fa91de577cff16634e4772c996b4b8f3e249b445 Mon Sep 17 00:00:00 2001 From: Taneli Hukkinen <3275109+hukkin@users.noreply.github.com> Date: Thu, 19 Dec 2024 20:18:45 +0200 Subject: [PATCH 1/2] maintain: add v0.7.20 changelog --- docs/users/changelog.md | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/docs/users/changelog.md b/docs/users/changelog.md index b54e1f1..b22cc7b 100644 --- a/docs/users/changelog.md +++ b/docs/users/changelog.md @@ -3,10 +3,19 @@ This log documents all Python API or CLI breaking backwards incompatible changes. Note that there is currently no guarantee for a stable Markdown formatting style across versions. -## **unreleased** +## 0.7.20 - Deprecated - - `mdformat.codepoints.ASCII_WHITESPACE` + - `mdformat.codepoints.ASCII_WHITESPACE`. + CommonMark no longer defines this since v0.30. +- Added + - `--no-validate` flag for disabling the AST safety check. + Thank you, [Kyle King](https://github.com/KyleKing), for the PR. + - Added the delete control character to `mdformat.codepoints.ASCII_CTRL` as per CommonMark v0.30 +- Fixed + - The AST safety check not triggering when a code formatter plugin is in use, + two or more code blocks are in the same file, + and unsafe formatting happens in between the code blocks. ## 0.7.19 From a4f971ca2f48194cffed57f618874d7f931b6949 Mon Sep 17 00:00:00 2001 From: Taneli Hukkinen <3275109+hukkin@users.noreply.github.com> Date: Thu, 19 Dec 2024 20:19:02 +0200 Subject: [PATCH 2/2] =?UTF-8?q?Bump=20version:=200.7.19=20=E2=86=92=200.7.?= =?UTF-8?q?20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .bumpversion.cfg | 2 +- docs/conf.py | 2 +- docs/users/installation_and_usage.md | 2 +- pyproject.toml | 2 +- src/mdformat/__init__.py | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.bumpversion.cfg b/.bumpversion.cfg index 94c6ea6..4435406 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -2,7 +2,7 @@ commit = True tag = True tag_name = {new_version} -current_version = 0.7.19 +current_version = 0.7.20 [bumpversion:file:pyproject.toml] search = version = "{current_version}" # DO NOT EDIT THIS LINE MANUALLY. LET bump2version UTILITY DO IT diff --git a/docs/conf.py b/docs/conf.py index 6869d04..3da338c 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -23,7 +23,7 @@ author = 'Taneli Hukkinen' # The full version, including alpha/beta/rc tags -release = '0.7.19' # DO NOT EDIT THIS LINE MANUALLY. LET bump2version UTILITY DO IT +release = '0.7.20' # DO NOT EDIT THIS LINE MANUALLY. LET bump2version UTILITY DO IT # -- General configuration --------------------------------------------------- diff --git a/docs/users/installation_and_usage.md b/docs/users/installation_and_usage.md index 257e91c..2b81666 100644 --- a/docs/users/installation_and_usage.md +++ b/docs/users/installation_and_usage.md @@ -68,7 +68,7 @@ Add the following to your project's `.pre-commit-config.yaml` to enable this: ```yaml - repo: https://github.com/hukkin/mdformat - rev: 0.7.19 # Use the ref you want to point at + rev: 0.7.20 # Use the ref you want to point at hooks: - id: mdformat # Optionally add plugins diff --git a/pyproject.toml b/pyproject.toml index c98371e..0035cd3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta" [project] name = "mdformat" -version = "0.7.19" # DO NOT EDIT THIS LINE MANUALLY. LET bump2version UTILITY DO IT +version = "0.7.20" # DO NOT EDIT THIS LINE MANUALLY. LET bump2version UTILITY DO IT description = "CommonMark compliant Markdown formatter" authors = [ { name = "Taneli Hukkinen", email = "hukkin@users.noreply.github.com" }, diff --git a/src/mdformat/__init__.py b/src/mdformat/__init__.py index bdd9975..2d2a29b 100644 --- a/src/mdformat/__init__.py +++ b/src/mdformat/__init__.py @@ -1,4 +1,4 @@ __all__ = ("file", "text") -__version__ = "0.7.19" # DO NOT EDIT THIS LINE MANUALLY. LET bump2version UTILITY DO IT +__version__ = "0.7.20" # DO NOT EDIT THIS LINE MANUALLY. LET bump2version UTILITY DO IT from mdformat._api import file, text