You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 6, 2023. It is now read-only.
Summary:
This diff implements the `unTab` operation for nested lists.
It covers the following four cases (refer to the diagrams below for a better explanation):
1. Block is not nested => do nothing
2. Block is first child => move as previous sibling of parent
3. Block is last child => move as next sibling of parent
4. Block is neither the first nor the last child => split the block at the child, keep previous children on original parent, move block as next sibling of parent & add the new block with the next children as its next sibling.
1 - 3 =>
{F138170258}
4 =>
{F138170261}
**TODO:**
Still figuring out the correct paradigm for dealing with the block's children when the first nested block is un-nested & will add behaviors + test cases for that in the next diff.
Reviewed By: vdurmont
Differential Revision: D9757713
fbshipit-source-id: 01796b003acbfcfcc6fa8d5f6f4576d4f2a13ec6
0 commit comments