How do we format subscript and superscript numbers?

For example, I've referred to SO2 a few times, and someone has already edited an answer of mine and converted the '2' to subscript.

| |

I'm not sure whether there's a Markdown way to do it, but Stackexchange allows you to just use the HTML <sub> and <sup> tags.


CO<sub>2</sub> and mv<sup>2</sup>


CO2 and mv2 respectively.

| |
  • $\begingroup$ thanks (9 chars ) $\endgroup$ – winwaed Apr 16 '14 at 19:32
  • 1
    $\begingroup$ Just to note, there is no markdown support for subscripts and superscripts. $\endgroup$ – Robert Cartaino Apr 17 '14 at 13:58

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .