Repository navigation
Fix uneven backtick handling - #1669
Merged
waylan merged 2 commits intoOct 21, 2026
Merged
Conversation
1. Ensure start is only adjusted with the longest closing code span is less than the opening and greater than 0. 2. Remove dead code as we should always find an opening. 3. `find_code_span` will always return an opening. End will be `None` if a match could not be found. 4. Ensure the beginning backticks are not parsed again if no end was found. Fixes Python-Markdown#1668
waylan
reviewed
Oct 21, 2026
|
|
||
| * Escape the language name in the `codehilite` extension's non-Pygments output to | ||
| maintain consistency with Pygments output. | ||
| * Fix regression in `BacktickInlineProcessor` where text could be lost when opening and closing backticks did not |
Member
There was a problem hiding this comment.
I have noticed this in a few of your recent PRs. Every entry in a changelog must be nested under a level 3 heading of either Fixed, Changed, Added, or Removed. You keep leaving that out, which causes deployment to fail when our deploy script attempts to extract the release notes from the changelog. I don't know why the changelog validator doesn't catch it in a non-release. I fixed it hear when I resolved a merge conflict, but I wanted to bring it to your attention.
waylan
approved these changes
Oct 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
find_code_spanwill always return an opening. End will beNoneif a match could not be found.Fixes #1668
Description
AI Assistance Disclosure
No AI tools were used in preparing this PR.
AI tools were used and I have disclosed which ones, and have fully reviewed and verified their output.
AI tools were use to assist with the following:
Checklist