Skip to content

Commit b087fd9

Browse files
neoneyeclaude
andcommitted
fix: pin Pygments and pymdown-extensions to prevent build crash
Pygments 2.20.0 and pymdown-extensions 10.21.2 (both released 2026-03-29) introduced a regression causing 'NoneType' object has no attribute 'replace' in html.escape() when processing code blocks. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 2cd9c24 commit b087fd9

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

requirements.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,9 @@
22
# Pinned to specific versions to prevent breaking changes
33
mkdocs-material[imaging]==9.7.1
44
mkdocs-git-revision-date-localized-plugin>=1.2.0
5+
# Pin Pygments and pymdown-extensions to avoid regressions
6+
# Pygments 2.20.0 and pymdown-extensions 10.21.2 (both 2026-03-29)
7+
# introduced a crash: 'NoneType' object has no attribute 'replace'
8+
# in html.escape() when processing code blocks with no filename
9+
Pygments>=2.19.0,<2.20
10+
pymdown-extensions>=10.14,<10.21

0 commit comments

Comments
 (0)