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/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 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