reformat chemical equations in html