restore HTML elements lost in markdown