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
F14074941: D20821.id49640.diff
Thu, Nov 21, 9:19 AM
Unknown Object (File)
Fri, Nov 15, 10:08 PM
Unknown Object (File)
Tue, Nov 12, 7:57 PM
Unknown Object (File)
Thu, Oct 31, 8:02 PM
Unknown Object (File)
Sun, Oct 27, 12:48 AM
Unknown Object (File)
Oct 22 2024, 1:42 AM
Unknown Object (File)
Oct 20 2024, 4:49 AM
Unknown Object (File)
Oct 13 2024, 7:09 PM
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.