remirror v1.0.0-next.53 Release Notes

Release Date: 2020-11-12 // over 3 years ago
  • ๐Ÿ›  Fixes

    ๐Ÿ›  a1d65df6 #775 Thanks @whawker! - Fixes extensions that were erroneously adding extra attributes to the DOM twice.

    Attributes were correctly added using their toDOM handler, but also incorrectly in their raw form.

    Example

    const linkExtension = new LinkExtension({extraAttributes: {custom: {default: 'my default',parseDOM: (dom) =\> dom.getAttribute('data-custom'),toDOM: (attrs) =\> ['data-custom', attrs.custom],},},});
    

    Resulted in

    \<a data-custom="my default" custom="my default" \<!-- extra attribute rendered in raw form --\>href="https://remirror.io" rel="noopener noreferrer nofollow"\>\</a\>
    

    ๐Ÿ”€ 5fd944c6 #770 Thanks @whawker! - Prevent callouts being merged when removing content in between callout nodes.