The new wrapRangeInList
function provides the implementation of the wrapInList
command as a more flexible function.
Add attribute type validation for ordered list nodes.
The new splitListItemKeepMarks
command can be used like splitListItem
but will keep the active marks from the original item.
splitListItem
now takes an optional second argument to set the attributes of the new list item node. Rename parameter
Include CommonJS type declarations in the package to please new TypeScript resolution settings.
Fix an issue where liftListItem
could create adjacent sublists when lifting an item with sub-items.
Fix a regression where lifting a nested list could crash.
Include TypeScript type declarations.
Fix a crash in liftListItem
that happens when list items that can't be merged are lifted together.
Fix an issue where splitListItem
would delete content when activated in a sublist that had content directly after it.
Fix a regression where liftListItem
couldn't lift a paragraph from the end of a composite list item.
Fix an issue where splitListItem
could delete other content in the item when pressing enter in an empty paragraph that had other content below it in a list item.
Rename ES module files to use a .js extension, since Webpack gets confused by .mjs
The file referred to in the package's module
field now is compiled down to ES5.
Add a module
field to package json file.
Fix regression where splitListItem
doesn't work at the end of an item when the content for list items has different first and non-first allowed nodes.
sinkListItem
will no longer copy the attributes of the parent list when creating an inner list.
sinkListItem
no longer preserves marks from the outer list when creating an inner list.
Fixes a bug that caused wrapInList
to split list items in the wrong place.
The splitListItem
command now splits the parent list item when executed in a (trailing) empty list item in a nested list.
The liftListItem
command can now lift items out of a list entirely, when the parent node isn't another list.
New module combining the node specs from schema-basic, and the list-related commands from the commands module.