improve splitListItem #7
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix-split-list-item"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Checking for a non-nested depths should use
$from.depth == 3instead of 2.Should it? With
depth == 3, calling.node(-3)returns a node, and it looks like this is guarding against that returning undefined.That makes sense. But I still don't think $from.depth could be any value less than 3, since it requires at least a
doc(0)>ul(1)>li(2)>p(3)for this command to work.Maybe we shall change the earlier check:
to:
?
What is the problem you are looking to solve here?
Nothing particular, I'm just trying to understand the implementation of
splitListItem, and find it pretty challenging to do so.All right, if there's no actual bug that's being addressed, I'll close this.
Pull request closed