Skip to content

Commit 44d96f9

Browse files
committed
fix for mistune 3.1.0
1 parent 470ba66 commit 44d96f9

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## 0.8.2dev
44

5+
* [Fix] Compatibility with `mistune>=3.1.0`
6+
57
## 0.8.1 (2024-10-16)
68

79
* [Feature] Updates `ci.yml` template

setup.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,9 @@ def read(*names, **kwargs):
6161

6262
# to run: pkgmt check
6363
CHECK = [
64-
# for check-project
65-
"mistune>=3rc",
64+
# for check-project, pinned because mistune 3.1.0 change how it represents
65+
# headings, which breaks `get_first_subheading`
66+
"mistune>=3.1.0",
6667
]
6768

6869
setup(

src/pkgmt/changelog.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ def get_first_subheading(self):
223223
subheading = {
224224
"type": "heading",
225225
"attrs": {"level": 2},
226-
"style": "axt",
226+
"style": "atx",
227227
"children": [{"type": "text", "raw": ANY}],
228228
}
229229

0 commit comments

Comments
 (0)