Two Markdown link definitions: which URL does the reader get?
A README contains two addresses beside what looks like the same reference label. The last address in the file is not necessarily the one its reader gets. To review that link, inspect the rendered destination alongside the source and its version.
For a CommonMark reference link, the first matching valid definition takes precedence. That is a parsing rule, not a judgment about which address is newer or more trustworthy. The following small exercise shows how to keep those questions separate.

A link whose address is elsewhere
An inline Markdown link puts its destination immediately after its visible text. A reference link instead uses a label to find a definition elsewhere in the document. The CommonMark specification, version 0.31.2, describes that mechanism and the precedence rule.
Invented example: save this as fixture.md. The inspection note and paths are fictional; the example.org addresses are placeholders, not sources to visit.
Read the [inspection note][Dock Log].
[dock log]: https://example.org/archive/note-a
[DOCK LOG]: https://example.org/archive/note-b
The visible words are “inspection note.” The following bracketed label selects a definition. In this fixture, Dock Log, dock log and DOCK LOG match despite their capitalization and repeated spaces. See CommonMark’s label normalization rules.
Our local rendering selected https://example.org/archive/note-a. The other URL still exists in the raw file, but it is not the destination of this particular rendered link. Searching the source for a domain would reveal its presence without establishing that readers can follow it from the displayed passage.
Test the smallest change that could explain the discrepancy
We ran the invented input with markdown-it-py 4.0.0, using its commonmark preset on Python 3.12.10. The maintainer’s usage documentation explains the parser and rendering API. With that package installed, this code prints the HTML without requesting either example URL:
from pathlib import Path
from markdown_it import MarkdownIt
source = Path("fixture.md").read_text(encoding="utf-8")
result = MarkdownIt("commonmark").render(source)
print(result)
| Local fixture | Selected href ends with | What changed? |
|---|---|---|
| Original order | note-a | First matching definition is A. |
| Swap the two definition lines | note-b | B now comes first. |
| Put only A’s definition inside a fenced code block | note-b | A becomes displayed code, leaving B as the usable definition. |
All three results were checked locally. They are not observations of GitHub’s live renderer or an OSINT Jet feature. For the third variant, surround A’s line with separate lines containing three tildes, and leave a blank line before B. Retain the original fixture so that the edited examples cannot be mistaken for the received evidence.
Source, rendered link and redirect are separate observations
Suppose a screenshot shows the words “inspection note,” while a saved source file contains both addresses. That pair alone does not tell you which href appeared on the photographed page. The screenshot lacks the destination, and the source may belong to another revision or have passed through a different renderer.
Use the exact source revision and inspect the displayed link’s destination in the relevant page or its captured HTML. Record whether you observed that destination or reconstructed it with a local parser. If a website rewrites links after rendering, retain that additional observation too. A copied URL is still not the final address after navigation; redirects require their own evidence.
Do not repair the source before making this comparison. Removing the apparently redundant line could change the behavior you are trying to explain. Nor does finding a duplicate establish deliberate deception: a merged document or an unfinished edit can produce the same pattern.
Leave a link-resolution note
Record five items: the file and revision; the visible link text; the matching definitions in source order; the renderer or observed page; and the selected href. Add “destination not visited” when that is the scope of your check. The useful finding for this exercise is that the original fixture renders a link to note-a while also containing an unused matching definition for note-b.
For a repository, first pin down the revision with the GitHub provenance guide. Then place the source fragment and your resolution note beside the relevant finding in the investigation report template. This gives the next reviewer something reproducible beyond a bare list of URLs.
Author: OSINT Jet · Primary sources reviewed 29 November 2026
