slate v0.9.0 Release Notes
Release Date: 2016-07-28 // over 7 years ago-
BREAKING
The
wrap
andunwrap
method signatures have changed! Previously, you would passtype
anddata
as separate parameters, for example:wrapBlock('code', { src: true })
. This was inconsistent with other transforms, and has been updated such that a single argument ofproperties
is passed instead. So that example could now be:wrapBlock({ type: 'code', { data: { src: true }})
. You can still pass atype
string as shorthand, which will be the most frequent use case, for example:wrapBlock('code')
.