Skip to content

render: an image with no alt text can still claim a marker in a later code span #173

Closed

Description

@bketelsen

internal/render/markdown.go (emptyAltAt): the search for an image's ![]( stops at its next sibling. Two adjacent reference images with no alt text before a code span let the first one reach past the second, and rewrite the span when the destinations match.

Done when: an image's marker is found from the image's own source span, with a fixture of two adjacent reference images before a code span.

From the cross-review of #145 (re-review 3, finding N3, not blocking).

Activity

  1. added
    bug
    on Nov 11, 2026
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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions