1: Surrounded by carets
//- - - - - - - - -//
^foo^
//- - - - - - - - -//
<p><sup>foo</sup></p>
//= = = = = = = = = = = = = = = = = = = = = = = =//

2: Ordinal indicator
//- - - - - - - - -//
2^nd^
//- - - - - - - - -//
<p>2<sup>nd</sup></p>
//= = = = = = = = = = = = = = = = = = = = = = = =//

3: Powers
//- - - - - - - - -//
x^2^ + x^5^
//- - - - - - - - -//
<p>x<sup>2</sup> + x<sup>5</sup></p>
//= = = = = = = = = = = = = = = = = = = = = = = =//

4: Escaped caret
//- - - - - - - - -//
^foo\^
//- - - - - - - - -//
<p>^foo^</p>
//= = = = = = = = = = = = = = = = = = = = = = = =//

5: Carets surround text with a non-breaking space entity
//- - - - - - - - -//
^foo&nbsp;bar^
//- - - - - - - - -//
<p><sup>foo bar</sup></p>
//= = = = = = = = = = = = = = = = = = = = = = = =//

6: Carets surround text Surround with a non-breaking space (UTF-8)
//- - - - - - - - -//
^foo bar^
//- - - - - - - - -//
<p><sup>foo bar</sup></p>
//= = = = = = = = = = = = = = = = = = = = = = = =//

7: Carets in the middle and text before
//- - - - - - - - -//
text C^foo^C
//- - - - - - - - -//
<p>text C<sup>foo</sup>C</p>
//= = = = = = = = = = = = = = = = = = = = = = = =//

8: Carets in the middle and text after
//- - - - - - - - -//
C^foo^C text
//- - - - - - - - -//
<p>C<sup>foo</sup>C text</p>
//= = = = = = = = = = = = = = = = = = = = = = = =//

9: Footnote markers should be left untouched
//- - - - - - - - -//
text[^1] text[^2]
//- - - - - - - - -//
<p>text[^1] text[^2]</p>
//= = = = = = = = = = = = = = = = = = = = = = = =//

10: Superscript is one of +, -, '
//- - - - - - - - -//
x^+^ x^-^ x^'^
//- - - - - - - - -//
<p>x<sup>+</sup> x<sup>-</sup> x<sup>'</sup></p>
//= = = = = = = = = = = = = = = = = = = = = = = =//

11: Superscript begins with one of +, -, '
//- - - - - - - - -//
x^+2^ x^-2^ x^'2^
//- - - - - - - - -//
<p>x<sup>+2</sup> x<sup>-2</sup> x<sup>'2</sup></p>
//= = = = = = = = = = = = = = = = = = = = = = = =//

12: Superscript ends with one of +, -, '
//- - - - - - - - -//
x^2+^ x^2-^ x^2'^
//- - - - - - - - -//
<p>x<sup>2+</sup> x<sup>2-</sup> x<sup>2'</sup></p>
//= = = = = = = = = = = = = = = = = = = = = = = =//
