-
👌 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 https://spec.commonmark.org/0.30/#fenced-code-blocks), except that:- it allows for a closing tag on the same line as the opening tag, and
- it does not allow for an opening tag without closing tag (i.e. no auto-closing)
-
✨ Add
allowed
option for inline/block attributesThe
allowed
option accepts a list of allowed attribute names. If notNone
, any attributes not in this list will be removed and placed in the token's meta under the key"insecure_attrs"
.
-
👌 Add option for footnotes references to always be matched
Usually footnote references are only matched when a footnote definition of the same label has already been found. If
always_match_refs=True
, any[^...]
syntax will be treated as a footnote.
-
⬆️ UPGRADE: Drop python 3.7 and support 3.11 (#77)
-
⬆️ UPGRADE: Allow markdown-it-py v3 (#85)
- 👌 Make field_list compatible with latest upstream (#75)
- 🔧 Convert
state.srcCharCode
->state.src
(#84) - 🔧 Remove unnecessary method arg by @chrisjsewell in( #76)
- 👌 Centralise code block test (#83 and #87)
- This means that disabling the
code
block rule in markdown-it-py v3+ will now allow all syntax blocks to be indented by any amount of whitespace.
- This means that disabling the
-
👌 Improve
dollarmath
plugin: Addallow_blank_lines
option, thanks to @eric-wieser (#46) -
👌 Improve
admon
plugin: Add???
support, thanks to @KyleKing (#58) -
🔧 MAINTAIN: Make type checking strict (#86)
Full Changelog: https://github.com/executablebooks/mdit-py-plugins/compare/v0.3.5...v0.4.0
- 🐛 FIX: Regression in dollarmath by @chrisjsewell in #69
- 🐛 Fix regression in amsmath by @chrisjsewell in #70
- 🔧 Correct project documentation link by @andersk in #73
- ✨ NEW: Add attrs_block_plugin by @chrisjsewell in #66
- 👌 Improve field lists by @chrisjsewell in #65
- 🔧 Update pre-commit by @chrisjsewell in #64 (moving from flake8 to ruff)
Full Changelog: v0.3.3...v0.3.
🐛 FIX: span with end of inline before attrs
- ✨ NEW: Port
admon
plugin by @KyleKing (#53) - ✨ NEW: Add span parsing to inline attributes plugin by @chrisjsewell (#55)
- 🐛 FIX: Task list item marker can be followed by any GFM whitespace by @hukkin in (#42)
Full Changelog: v0.3.1...v0.4.0
- ⬆️ UPGRADE: Drop Python 3.6, support Python 3.10
- 🐛 FIX: Parsing when newline is between footnote ID and first paragraph
- 🐛 FIX: Anchor ids in separate renders no longer affect each other.
- ✨ NEW: Add
attrs_plugin
- 🔧 MAINTAIN: Use flit PEP 621 package build
- ⬆️ UPGRADE: Compatible with markdown-it-py
v2
. - ✨ NEW: Add field list plugin, Based on the restructuredtext syntax
- ♻️ REFACTOR: dollarmath plugin,
math_block_eqno
->math_block_label
token - ♻️ REFACTOR: Remove AttrDict usage from texmath
- 👌 IMPROVE: Default HTML rendering for dollarmath and amsmath plugins
- 👌 IMPROVE: Add render options for dollarmath and amsmath plugins
- 👌 IMPROVE: MyST parsing of target blocks (allow whitespace) and roles (allow for new lines)
🐛 FIX: wordcount
update of minutes
- ⬆️ UPDATE: markdown-it-py~=1.0
- ✨ NEW: Add
wordcount_plugin
- 👌 IMPROVE:
dollarmath
: Allow inline double-dollar - 👌 IMPROVE:
myst_blocks
: Parse multiline comments - 👌 IMPROVE: Replace use of
env
as anAttrDict
- 🐛 FIX:
front_matter
: don't duplicate content storage inToken.meta
👌 IMPROVE: Remove direct use of Token.attrs
🐛 FIX: front-matter: IndexError
if first line is single dash
✨ NEW: Add substitution_plugin (improvements in 0.2.3 and 0.2.4)
Add mypy type-checking, code taken from: https://github.com/executablebooks/markdown-it-py/commit/2eb1fe6b47cc0ad4ebe954cabd91fb8e52a2f03d
First release, code taken from: https://github.com/executablebooks/markdown-it-py/commit/3a5bdcc98e67de9df26ebb8bc7cd0221a0d6b51b