Copying this fragment:

...and pasting it here gives:
r
endered block quote in the middle of the page, like this:
A wise quote.
r
endered block quote in the middle of the page, like this:
A wise quote.
You can see the unwanted newline after the first character in any case.
I've also seen this in every instance of Slate I have played with, including in my own app.
it's because slate put's the first character of the selection in a span, (used to store the document fragment in the span's attribute, so could later paste exactly that.
simplest way around, if you don't need that functionality is to comment out
var wrapper = window.document.createElement('span');
var text = contents.childNodes[0];
var char = text.textContent.slice(0, 1);
var first = window.document.createTextNode(char);
var rest = text.textContent.slice(1);
text.textContent = rest;
wrapper.appendChild(first);
wrapper.setAttribute('data-slate-fragment', encoded);
contents.insertBefore(wrapper, text)
from core.js plugin onCutOrCopy function, or make the span be around the whole selection
@ianstormtaylor Do you have something in mind to address this already? If not, do you plan to address this issue as a bug?
why not put the data-slate-fragment on an empty span, or on the first childnode?
Putting it on an empty span, or on the first child element node sounds great to me! I'd love a PR that implements that. Thanks!
Most helpful comment
Putting it on an empty span, or on the first child element node sounds great to me! I'd love a PR that implements that. Thanks!