Releases: udecode/plate
Releases · udecode/plate
@udecode/plate-ai@42.1.0
@udecode/slate@42.0.3
Patch Changes
- #3952 by @zbeyens –
- Fix
editor.api.last(at, { level: 0 })
when editor has no children, it should returnundefined
. Fixes error on cmd+a > backspace. - Fix
editor.tf.removeNodes
whenpreviousEmptyBlock
is true withoutat
option, it should return early.- Fixes #3960
- Add
RangeApi.contains
to check if a range fully contains another range (both start and end points). - Add
editor.api.isSelected(target, { contains?: boolean })
to check if a path or range is selected by the current selection. Whencontains
is true, checks if selection fully contains the target. editor.tf.insertText
now support both legacy slate transformseditor.insertText
andTransforms.insertText
:editor.insertText
->editor.tf.insertText
withoutat
option. In addition,marks: false
option can be used to exclude current marks. Default istrue
.Transforms.insertText
->editor.tf.insertText
withat
option
- Add
editor.api.next
optionfrom
:from?: 'after' | 'child'
(default:'after'
): Determines where to start traversing from'after'
: Start from the point after the current location'child'
: Start from the first child of the current path.at
must be a path.
- Add
editor.api.previous
optionfrom
:from?: 'before' | 'parent'
(default:'before'
): Determines where to start traversing from'before'
: Start from the point before the current location'parent'
: Start from the parent of the current path.at
must be a path.
- Fix
@udecode/plate@42.0.4
@udecode/plate@42.0.4
@udecode/plate@42.0.3
@udecode/plate@42.0.3
@udecode/plate-utils@42.0.4
@udecode/plate-utils@42.0.4
@udecode/plate-utils@42.0.3
@udecode/plate-utils@42.0.3
@udecode/plate-test-utils@42.0.3
@udecode/plate-test-utils@42.0.3
@udecode/plate-selection@42.0.3
@udecode/plate-markdown@42.0.3
Patch Changes
- #3952 by @zbeyens –
editor.api.markdown.deserialize
:- Improve support for indented lists: nested lists, mixed ordered and unordered lists
- Fix: markdown codeblock without language should not set
lang: undefined
to the node - Add options:
memoize
: Enable block-level memoization with_memo
property, so it is compatible withPlateStatic
memoization.parse
: Filter out specific markdown token types (e.g. 'space')processor
: Customize the markdown processor
- Add
parseMarkdownBlocks
: Extract and filter markdown tokens using marked lexer - Fix
editor.api.markdown.serialize
indenting should be 3 spaces instead of 2.