File: superscript.md

package info (click to toggle)
haskell-commonmark-extensions 0.2.5.5-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 368 kB
  • sloc: haskell: 2,574; makefile: 9
file content (48 lines) | stat: -rw-r--r-- 825 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
## Superscript

Basic superscript is between `^`s:

```````````````````````````````` example
E=mc^2^.
.
<p>E=mc<sup>2</sup>.</p>
````````````````````````````````

Backslash escapes:

```````````````````````````````` example
E=mc\^2\^.
.
<p>E=mc^2^.</p>
````````````````````````````````

Spaces and formatting are allowed:

```````````````````````````````` example
E=mc^2 or *3*^.
.
<p>E=mc<sup>2 or <em>3</em></sup>.</p>
````````````````````````````````

Punctuation is ignored for purposes of determining
flankingness:

```````````````````````````````` example
E=mc^!^.
.
<p>E=mc<sup>!</sup>.</p>
````````````````````````````````

Superscript can't begin or end with a space:

```````````````````````````````` example
E=mc^ 2^.

E=mc^2 ^.

^ ^
.
<p>E=mc^ 2^.</p>
<p>E=mc^2 ^.</p>
<p>^ ^</p>
````````````````````````````````