fix markdown edit mode