Skip to content

0.9.0

Compare
Choose a tag to compare
@ianstormtaylor ianstormtaylor released this 22 Nov 02:40
· 3575 commits to main since this release
BREAKING CHANGES
  • The wrap and unwrap method signatures have changed! Previously, you would pass type and data as separate parameters, for example: wrapBlock('code', { src: true }). This was inconsistent with other transforms, and has been updated such that a single argument of properties is passed instead. So that example could now be: wrapBlock({ type: 'code', { data: { src: true }}). You can still pass a type string as shorthand, which will be the most frequent use case, for example: wrapBlock('code').