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
F14106214: D20820.diff
Wed, Nov 27, 5:09 AM
Unknown Object (File)
Oct 23 2024, 11:27 PM
Unknown Object (File)
Oct 20 2024, 11:54 AM
Unknown Object (File)
Oct 14 2024, 1:02 AM
Unknown Object (File)
Oct 9 2024, 12:42 PM
Unknown Object (File)
Sep 6 2024, 6:47 AM
Unknown Object (File)
Sep 6 2024, 6:47 AM
Unknown Object (File)
Sep 6 2024, 6:47 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