Pasting formatted text from a website into the Paste-HTML example duplicates the text that is pasted.
This happens on all types of text:
The bug exists in the current Paste-HTML example -- https://www.slatejs.org/#/paste-html. I hope the Slate live demo can substitute for a JS Fiddle snippet

(sorry for the short gif, only had 30 secs to record - I was pasting from this wikipedia article if you want to try yourself. )
Pasting text from another website does not duplicate the text and keeps the formatting
Hello
Need to change the onPaste
onPaste = (event, editor, next) => {
event.preventDefault() // <---- add me
const transfer = getEventTransfer(event)
if (transfer.type !== 'html') return next()
const { document } = serializer.deserialize(transfer.html)
editor.insertFragment(document)
}
Most helpful comment
Hello
Need to change the
onPaste