Skip to content

Open No Code Span at a Backtick Inside a Link Destination or Title in pr_review.py #3263

Closed

Description

@ptr727

The shape

GitHub binds a code span, raw inline HTML, an autolink, and a link by which one opens first. A link's destination and title are the remaining construct of that kind that CodeSpans in scripts/pr_review.py does not read, so a backtick inside one pairs with a later backtick.

Constructed case:

[a](https://e.example "t ` u") <b>B</b> `y`

GitHub renders a link titled t ` u, a live <b>, and y as a span. The reader finds one span, ` u") <b>B</b> `, so the live <b> reads as quoted.

Expected

A backtick inside an inline link's destination or title opens no span, with the constructed case pinned by a test. No reviewer body has been seen carrying one, so this ranks low.

Found by the local review of the #3235 fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementscript

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions