How to add superscript and subscript in a paragraph or title field?

I am trying to build an edtech app where few chemical formulas have superscripts and subscripts. Is there a way to add subscipts and superscripts in title or paragraph components?

Hi, you can use the HTML renderer component from the marketplace with <sub> and <sup> tags to display superscripts and subscripts.