Releases: udecode/plate
Releases · udecode/plate
@udecode/[email protected]
@udecode/[email protected]
@udecode/[email protected]
@udecode/[email protected]
@udecode/[email protected]
@udecode/[email protected]
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: undefinedto the node - Add options:
memoize: Enable block-level memoization with_memoproperty, so it is compatible withPlateStaticmemoization.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.serializeindenting should be 3 spaces instead of 2.
@udecode/[email protected]
@udecode/[email protected]
Patch Changes
- #3952 by @zbeyens –
- Fix
tf.resetmissingoptionsargument. Fixes editor reset on select all > backspace usingResetNodePlugin. PlateStaticelement and leaf rendering is now memoized withReact.memoso you can safely updateeditor.children. For elements, it compares theelementreference orelement._memovalue. The latter can be used to memoize based on the markdown string instead of theelementreference. For example,deserializeMdwithmemoize: truewill setelement._memofor that purpose.
- Fix
@udecode/[email protected]
@udecode/[email protected]
Patch Changes
-
#3952 by @zbeyens – Breaking changes (experimental):
AIChatPlugin: RemovecreateAIEditoroption- Fix
editor.tf.replaceSelection:- Improved single block selection case with full range check
- Fixed text properties inheritance when replacing selection
- In block selection mode, select the replaced blocks
- Add
useAIChatEditor: Creates an editor, registers in the AI chat plugin, and deserializes the
content intoeditor.childrenwith block-level memoization.