Skip to content

fix: upgrade pymdown-extensions to 10.21.2 for Pygments 2.20.0 compatibility#86

Merged
PiotrMackowski merged 1 commit into
mainfrom
fix/pymdownx-pygments-compat
Apr 11, 2026
Merged

fix: upgrade pymdown-extensions to 10.21.2 for Pygments 2.20.0 compatibility#86
PiotrMackowski merged 1 commit into
mainfrom
fix/pymdownx-pygments-compat

Conversation

@PiotrMackowski
Copy link
Copy Markdown
Owner

Summary\n\n- Upgrades pymdown-extensions from 10.21 to 10.21.2 to fix compatibility with Pygments 2.20.0\n\n## Context\n\nThe Pygments 2.20.0 upgrade (merged in #85 to fix CVE-2026-4539) introduced a breaking change where None filename values cause AttributeError in html.escape(). pymdown-extensions 10.21.2 explicitly handles this case.\n\nRef: facelessuser/pymdown-extensions#2863

Pygments 2.20.0 changed handling of None filename values, causing
mkdocs build to fail with AttributeError in html.escape(). pymdownx
10.21.2 explicitly fixes this incompatibility.
@PiotrMackowski PiotrMackowski merged commit 9002f70 into main Apr 11, 2026
6 checks passed
@PiotrMackowski PiotrMackowski deleted the fix/pymdownx-pygments-compat branch April 11, 2026 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant