Handle annotated text for inline-formula properly.