html/markdown conversion when switching between rich text/markdown editor