Skip to content

Link footnote addresses that hold balanced parentheses in full - #114

Merged
130U merged 1 commit into
mainfrom
footnote-links
Nov 20, 2026
Merged

130U merged 1 commit into
mainfrom
footnote-links

Conversation

@130U

@130U 130U commented Nov 20, 2026

Copy link
Copy Markdown
Owner

A footnote in the mangrove article cites Hong Kong's August 2026 habitat plan at an address that contains parentheses: …Management%20Plan%20(Ref.%20Z22-03).pdf. The footnote linker stopped at the first ), so the link pointed at a truncated address that returns 404.

  • The linker now accepts balanced parentheses inside an address and still ends an address at an unmatched closing parenthesis, as in "(see https://…)". It is the only address on the site with parentheses; the full link returns the 64 MB plan.
  • A test pins the full link on the mangrove page.

Checks: 134 tests, lint, type check, protected sources, the visible-copy manifest (one page: the link boundary moved, the text is unchanged) and the browser layout check (284 cases) pass.

@130U
130U merged commit 6560800 into main Nov 20, 2026
2 checks passed
@130U
130U deleted the footnote-links branch November 20, 2026 01:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant