From 2236898619148b33c51bae3c1aca380618c82db7 Mon Sep 17 00:00:00 2001 From: Chris Sewell Date: Mon, 9 Sep 2024 22:26:03 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=80=20Release=20v0.4.2=20(#121)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 19 +++++++++++++++++++ mdit_py_plugins/__init__.py | 2 +- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 130aa0b..26dbf23 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,24 @@ # Change Log +## 0.4.2 - 2024-09-09 + +- 👌 Improve parsing of nested amsmath + + The previous logic was problematic for amsmath blocks nested in other blocs (such as blockquotes) + + The new parsing code now principally follows the logic in `markdown_it/rules_block/fence.py` + (see also ), + except that: + + 1. it allows for a closing tag on the same line as the opening tag, and + 2. it does not allow for an opening tag without closing tag (i.e. no auto-closing) + +- ✨ Add `allowed` option for inline/block attributes + + The `allowed` option accepts a list of allowed attribute names. + If not ``None``, any attributes not in this list will be removed + and placed in the token's meta under the key `"insecure_attrs"`. + ## 0.4.1 - 2024-05-12 * 👌 Add option for footnotes references to always be matched diff --git a/mdit_py_plugins/__init__.py b/mdit_py_plugins/__init__.py index 3d26edf..df12433 100644 --- a/mdit_py_plugins/__init__.py +++ b/mdit_py_plugins/__init__.py @@ -1 +1 @@ -__version__ = "0.4.1" +__version__ = "0.4.2"