Page MenuHomePhabricator

Allow a user to target "#anchor" by navigating to any prefix
ClosedPublic

Authored by epriestley on Sep 18 2019, 10:02 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, May 4, 8:36 AM
Unknown Object (File)
Tue, Apr 30, 11:22 PM
Unknown Object (File)
Sat, Apr 27, 11:13 AM
Unknown Object (File)
Mon, Apr 22, 10:39 PM
Unknown Object (File)
Sat, Apr 20, 4:56 PM
Unknown Object (File)
Sat, Apr 20, 1:53 PM
Unknown Object (File)
Thu, Apr 11, 7:18 AM
Unknown Object (File)
Apr 3 2024, 7:58 AM
Subscribers
None

Details

Summary

Ref T13410. We currently generate some less-than-ideal anchors in remarkup, but it's hard to change the algorithm without breaking stuff.

To mitigate this, allow #xyz to match any target on the page which begins with xyz. This means we can make anchors longer with no damage, and savvy users are free to shorten anchors to produce more presentation-friendly links.

Test Plan

Browsed to #header-th, was scrolled to #header-three, etc.

Diff Detail

Repository
rP Phabricator
Branch
anchor1
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 23465
Build 32242: Run Core Tests
Build 32241: arc lint + arc unit