File: subscript.md

package info (click to toggle)
haskell-commonmark-extensions 0.2.5.5-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 368 kB
  • sloc: haskell: 2,574; makefile: 9
file content (49 lines) | stat: -rw-r--r-- 820 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
49
## Subscript

Basic subscript is between `~`s:

```````````````````````````````` example
E=mc~2~.
.
<p>E=mc<sub>2</sub>.</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<sub>2 or <em>3</em></sub>.</p>
````````````````````````````````

Punctuation is ignored for purposes of determining
flankingness:

```````````````````````````````` example
E=mc~!~.
.
<p>E=mc<sub>!</sub>.</p>
````````````````````````````````

Subscript 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>
````````````````````````````````