Great question! Dave's suggestion about using \( n^2 \) is good, that's the LaTeX/KaTeX syntax our rendering engine needs to recognize mathematical notation.
Instead of plain text "n^2", use:
Fractions: \( \frac{a}{b} \)
Include this formatted text directly in your inputText parameter and it should render properly as mathematical notation rather than literal text.
I'll flag that we should add this to our API docs. Let me know if this works for you!