1: Surrounded by carets //- - - - - - - - -// ^foo^ //- - - - - - - - -//

foo

//= = = = = = = = = = = = = = = = = = = = = = = =// 2: Ordinal indicator //- - - - - - - - -// 2^nd^ //- - - - - - - - -//

2nd

//= = = = = = = = = = = = = = = = = = = = = = = =// 3: Powers //- - - - - - - - -// x^2^ + x^5^ //- - - - - - - - -//

x2 + x5

//= = = = = = = = = = = = = = = = = = = = = = = =// 4: Escaped caret //- - - - - - - - -// ^foo\^ //- - - - - - - - -//

^foo^

//= = = = = = = = = = = = = = = = = = = = = = = =// 5: Carets surround text with a non-breaking space entity //- - - - - - - - -// ^foo bar^ //- - - - - - - - -//

foo bar

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

foo bar

//= = = = = = = = = = = = = = = = = = = = = = = =// 7: Carets in the middle and text before //- - - - - - - - -// text C^foo^C //- - - - - - - - -//

text CfooC

//= = = = = = = = = = = = = = = = = = = = = = = =// 8: Carets in the middle and text after //- - - - - - - - -// C^foo^C text //- - - - - - - - -//

CfooC text

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

text[^1] text[^2]

//= = = = = = = = = = = = = = = = = = = = = = = =// 10: Superscript is one of +, -, ' //- - - - - - - - -// x^+^ x^-^ x^'^ //- - - - - - - - -//

x+ x- x'

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

x+2 x-2 x'2

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

x2+ x2- x2'

//= = = = = = = = = = = = = = = = = = = = = = = =//