Releases: udecode/plate
Releases · udecode/plate
@udecode/plate-utils@46.0.2
@udecode/plate-utils@46.0.2
@udecode/plate-suggestion@46.0.1
Patch Changes
- #4124 by @felixfeng33 – Fix
diffToSuggestions
to adapt to the new suggestion structure.
@udecode/plate-core@46.0.2
@udecode/plate-code-block@46.0.0
Major Changes
-
#4122 by @zbeyens – Migrated from
prismjs
tohighlight.js
+lowlight
for syntax highlighting.- Fix highlighting multi-lines tokens. Before, line tokens were computed line by line. Now, it's computed once for the whole block.
- Bundle size much lower.
CodeBlockPlugin
: removeprism
option. Uselowlight
option instead:
import { all, createLowlight } from 'lowlight'; const lowlight = createLowlight(all); CodeBlockPlugin.configure({ options: { lowlight, }, });
- New option:
defaultLanguage
- Remove
syntax
option. Just omitlowlight
option to disable syntax highlighting. - Remove
syntaxPopularFirst
option. Control this behavior in your own components. - Fix pasting code inside code blocks.
- Remove
useCodeBlockCombobox
,useCodeBlockElement
,useCodeSyntaxLeaf
,useToggleCodeBlockButton
. The logic has been moved to the components.
@udecode/plate-basic-elements@46.0.0
@udecode/plate-basic-elements@46.0.0
@udecode/plate-selection@45.1.0
@udecode/plate-ai@45.1.0
@udecode/plate-ai@45.1.0
@udecode/plate@45.0.9
@udecode/plate@45.0.9
@udecode/plate@45.0.8
@udecode/plate@45.0.8
@udecode/plate@45.0.7
@udecode/plate@45.0.7