Debian Codegraph @

extras/_test/superscript.txt

raw
1 1: Surrounded by carets
2 //- - - - - - - - -//
3 ^foo^
4 //- - - - - - - - -//
5 <p><sup>foo</sup></p>
6 //= = = = = = = = = = = = = = = = = = = = = = = =//
7
8 2: Ordinal indicator
9 //- - - - - - - - -//
10 2^nd^
11 //- - - - - - - - -//
12 <p>2<sup>nd</sup></p>
13 //= = = = = = = = = = = = = = = = = = = = = = = =//
14
15 3: Powers
16 //- - - - - - - - -//
17 x^2^ + x^5^
18 //- - - - - - - - -//
19 <p>x<sup>2</sup> + x<sup>5</sup></p>
20 //= = = = = = = = = = = = = = = = = = = = = = = =//
21
22 4: Escaped caret
23 //- - - - - - - - -//
24 ^foo\^
25 //- - - - - - - - -//
26 <p>^foo^</p>
27 //= = = = = = = = = = = = = = = = = = = = = = = =//
28
29 5: Carets surround text with a non-breaking space entity
30 //- - - - - - - - -//
31 ^foo&nbsp;bar^
32 //- - - - - - - - -//
33 <p><sup>foo bar</sup></p>
34 //= = = = = = = = = = = = = = = = = = = = = = = =//
35
36 6: Carets surround text Surround with a non-breaking space (UTF-8)
37 //- - - - - - - - -//
38 ^foo bar^
39 //- - - - - - - - -//
40 <p><sup>foo bar</sup></p>
41 //= = = = = = = = = = = = = = = = = = = = = = = =//
42
43 7: Carets in the middle and text before
44 //- - - - - - - - -//
45 text C^foo^C
46 //- - - - - - - - -//
47 <p>text C<sup>foo</sup>C</p>
48 //= = = = = = = = = = = = = = = = = = = = = = = =//
49
50 8: Carets in the middle and text after
51 //- - - - - - - - -//
52 C^foo^C text
53 //- - - - - - - - -//
54 <p>C<sup>foo</sup>C text</p>
55 //= = = = = = = = = = = = = = = = = = = = = = = =//
56
57 9: Footnote markers should be left untouched
58 //- - - - - - - - -//
59 text[^1] text[^2]
60 //- - - - - - - - -//
61 <p>text[^1] text[^2]</p>
62 //= = = = = = = = = = = = = = = = = = = = = = = =//
63
64 10: Superscript is one of +, -, '
65 //- - - - - - - - -//
66 x^+^ x^-^ x^'^
67 //- - - - - - - - -//
68 <p>x<sup>+</sup> x<sup>-</sup> x<sup>'</sup></p>
69 //= = = = = = = = = = = = = = = = = = = = = = = =//
70
71 11: Superscript begins with one of +, -, '
72 //- - - - - - - - -//
73 x^+2^ x^-2^ x^'2^
74 //- - - - - - - - -//
75 <p>x<sup>+2</sup> x<sup>-2</sup> x<sup>'2</sup></p>
76 //= = = = = = = = = = = = = = = = = = = = = = = =//
77
78 12: Superscript ends with one of +, -, '
79 //- - - - - - - - -//
80 x^2+^ x^2-^ x^2'^
81 //- - - - - - - - -//
82 <p>x<sup>2+</sup> x<sup>2-</sup> x<sup>2'</sup></p>
83 //= = = = = = = = = = = = = = = = = = = = = = = =//