Add splitListItemKeepMarks command #10
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "split-list-with-marks"
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?
This PR adds
splitListItemKeepMarkscommand which replicates a behavior ofsplitBlockKeepMarkscommand for lists.Why?
I was working on the requirements to preserve marks on the new line. I found that
splitBlockKeepMarkscommand to be very useful for it, but could not find similar command for lists.I think this is an important addition to this package, so it is consistent with the functionality provided by prosemirror-commands.
This looks like it doesn't actually test the preserving---it doesn't look at what the stored marks are after the command runs.
I think this is essentially done now, right?
It looks like the author of this never responded to my reviews and I forgot about this PR, but patch
5ab856ab62implements this command.Pull request closed