prosemirror-model
Advanced tools
Changelog
1.21.0 (2024-05-06)
The new linebreakReplacement
property on node specs makes it possible to configure a node type that setBlockType
will convert to and from line breaks when appropriate.
Changelog
1.20.0 (2024-04-08)
The ParseRule
type is now a union of TagParseRule
and StyleParseRule
, with more specific types being used when appropriate.
Changelog
1.19.4 (2023-12-11)
Make textBetween
emit block separators for empty textblocks.
Changelog
1.19.3 (2023-07-13)
Don't apply style parse rules for nodes that are skipped by other parse rules.
Changelog
1.19.2 (2023-05-23)
Allow parse rules with a clearMark
directive to clear marks that have already been applied.
Changelog
1.19.1 (2023-05-17)
Fix the types of Fragment.desendants
to include the index parameter to the callback. Add release note
Include CommonJS type declarations in the package to please new TypeScript resolution settings.
Changelog
1.19.0 (2023-01-18)
Parse rules for styles can now provide a clearMark
property to remove pending marks (for example for font-style: normal
).
Changelog
1.18.2 (2022-11-14)
Improve DOM parsing of nested block elements mixing block and inline children.