slate-react 0.130.1-20261008065500 → 0.130.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2801,7 +2801,10 @@
2801
2801
  // show up elsewhere when pasted.
2802
2802
  Array.from(contents.querySelectorAll('[data-slate-zero-width]')).forEach(zw => {
2803
2803
  const isNewline = zw.getAttribute('data-slate-zero-width') === 'n';
2804
- zw.textContent = isNewline ? '\n' : '';
2804
+ zw.textContent = '';
2805
+ if (isNewline) {
2806
+ zw.appendChild(zw.ownerDocument.createElement('br'));
2807
+ }
2805
2808
  });
2806
2809
  // Set a `data-slate-fragment` attribute on a non-empty node, so it shows up
2807
2810
  // in the HTML, and can be used for intra-Slate pasting. If it's a text