You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Open a Code Span After an Even Backslash Run in pr_review.py #3265
CodeSpans in scripts/pr_review.py refuses a backtick run that a backslash precedes, (?<![\\])`, since an escaped tick opens nothing. Two backslashes escape each other, though, so the run after an even number of them is live. GitHub opens a span there, and the reader does not.
Constructed case:
x \\`y` z
GitHub renders a literal backslash and y as a code span. The reader finds no span, so a tag inside such a span reads as live.
The inline HTML readers beside it take the even run already, consuming it as part of the match. That does not carry over to the span, since a span's match is what sub replaces and what finditer's callers slice by offset.
Expected
A backtick run after an even number of backslashes opens a span, with the constructed case pinned by a test. No reviewer body has been seen carrying the shape, so this ranks low.
Activity
Read Code Spans, Inline HTML, and Autolinks Left to Right in pr_revie…
Pin pr_review.py's Markdown Reader Gaps as Known Limits (#3270)