prosemirror-transform
Advanced tools
Changelog
1.10.2 (2024-10-11)
Allow Transform.join
to clear incompatible inline content from the node after the join.
Changelog
1.10.1 (2024-10-10)
Fix an issue where a deleteRange
heuristic could produce unexpected deletion shapes.
Make Transform.join
convert between newlines and line break replacement nodes when necessary.
Changelog
1.10.0 (2024-08-13)
setBlockType
can now take a function that computes attributes for the new nodes, instead of a static attribute object.
Changelog
1.9.0 (2024-05-06)
Fix an issue in ReplaceAroundStep.map
that broke mapping steps that wrapped content over steps that inserted content at the start of the step.
setBlockMarkup
now uses the linebreak equivalent node defined in the schema.
Changelog
1.8.0 (2023-10-01)
The new DocAttrStep
can be used to set attributes on the document's top node.
Transform.setDocAttribute
can be used to create a DocAttrStep
in a transform.
Changelog
1.7.5 (2023-08-22)
Fix a failure in replaceRange
to drop wrapper nodes when the same wrapper is already present.
Changelog
1.7.4 (2023-07-28)
When using setBlockType
to convert a code block to a type of node that doesn't contain code, replace newlines with spaces.
Changelog
1.7.3 (2023-06-01)
Fix a bug in canSplit
that made it interpret the typesAfter
argument incorrectly on splits of depth greater than 1.
Changelog
1.7.2 (2023-05-17)
Include CommonJS type declarations in the package to please new TypeScript resolution settings.