Add superscript and subscript formatting.