base repository:
mkdocstrings/python
Choose a base ref
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1.16.11...
head repository:
mkdocstrings/python
Choose a head ref
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 1.16.12- 2 commits
- 2 files changed
- 1 contributor
Commits on Jun 2, 2025
-
fix: Only replace CSS class in first *highlighting* span
When `pymdownx.highlight` sets `auto_title: true`, another span is rendered before the highlighted code. If we replace its CSS class, we mess its final display. Our solution is not very robust: we only look for spans with CSS classes of 1 or 2 characters instead of 1 or more characters. Issue-281: #281