fix markdown on update calls by forcing contenteditable to remove leading and trailing <p> elements