Skip to content

v0.73.0

Choose a tag to compare

@github-actions github-actions released this 22 Feb 02:27
914aa5d

v0.73.0

Breaking Changes

  • withAutoformat:
    • removed mode: 'inline-block', use instead mode: 'block' with triggerAtBlockStart: false.
  • renamed isNodeEntry to queryNode

Features

  • withAutoformat: new options
    • allowSameTypeAbove?: boolean: If true, allow to autoformat even if there is a block of the same type above the selected block. Should be used with 'block' mode. Default is false.
    • triggerAtBlockStart?: boolean: If true, the trigger should be at block start to allow autoformatting. Should be used with 'block' mode. Default is true.
    • query?: (editor: Editor, rule: Omit<AutoformatRule, 'query'>) => boolean: Query to allow autoformat.

Bug Fixes

  • withAutoformat:
    • block autoformatting is not triggering anymore when there is a void node before the trigger.
    • block autoformatting is not triggering anymore when a block above has the same type than the rule type.