Turns any copied rich text into markdown when pasting to textarea