daviferreira/medium-editor — pull request #55 by dmitric (2013-10-08 00:29:10+00:00)
Title: Wrap pasted text in p elements

Now that text is always in a

by default, I figured text that was pasted should also always be in

blocks. I split the pasted text by the same /\r\n/ regex you used originally, and then concatenate it together in between opening and closing

elements.