Page MenuHomePhabricator

Generate more friendly anchor names for header sections in Remarkup
ClosedPublic

Authored by epriestley on Sep 18 2019, 10:23 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Dec 21, 12:57 AM
Unknown Object (File)
Sat, Dec 14, 7:45 PM
Unknown Object (File)
Tue, Dec 10, 5:24 PM
Unknown Object (File)
Tue, Dec 10, 8:58 AM
Unknown Object (File)
Sun, Dec 8, 6:59 PM
Unknown Object (File)
Sun, Dec 8, 9:50 AM
Unknown Object (File)
Thu, Dec 5, 3:49 PM
Unknown Object (File)
Tue, Dec 3, 7:11 AM
Subscribers
None

Details

Summary

Depends on D20820. Ref T13410. We currently cut anchor names in the middle, don't support emoji in anchors, and generate relatively short anchors.

Generate slightly longer anchors, allow more unicode, and try not to cut things in the middle.

Test Plan

Created a document with a variety of different anchors and saw them generate more usable names.

Diff Detail

Repository
rP Phabricator
Branch
anchor2
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 23473
Build 32255: Run Core Tests
Build 32254: arc lint + arc unit

Event Timeline

Harbormaster returned this revision to the author for changes because remote builds failed.Sep 18 2019, 10:25 PM
Harbormaster failed remote builds in B23466: Diff 49640!
  • Fix library map.
  • Add test coverage.
  • Clean up a few behaviors.
Harbormaster returned this revision to the author for changes because remote builds failed.Sep 24 2019, 3:57 PM
Harbormaster failed remote builds in B23472: Diff 49645!
  • Fix tests and provide an explicit anchor rendering mode.
This revision was not accepted when it landed; it landed in state Needs Review.Sep 24 2019, 6:03 PM
This revision was automatically updated to reflect the committed changes.