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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
|
gfm tests:
```
% pandoc -f gfm -t native
| Fruit | Price |
| ----- | ----: |
| apple | 0.13 |
| orange|1.12|
^D
[Table [] [AlignDefault,AlignRight] [0.0,0.0]
[[Plain [Str "Fruit"]]
,[Plain [Str "Price"]]]
[[[Plain [Str "apple"]]
,[Plain [Str "0.13"]]]
,[[Plain [Str "orange"]]
,[Plain [Str "1.12"]]]]]
```
```
% pandoc -f gfm -t native
~~stricken out~~
^D
[Para [Strikeout [Str "stricken",Space,Str "out"]]]
```
```
% pandoc -f gfm -t native
# Header
## Header
# -foo-bar_baz
^D
[Header 1 ("header",[],[]) [Str "Header"]
,Header 2 ("header-1",[],[]) [Str "Header"]
,Header 1 ("-foo-bar_baz",[],[]) [Str "-foo-bar_baz"]]
```
```
% pandoc -f gfm -t native
My:thumbsup:emoji:heart:
^D
[Para [Str "My\128077emoji\10084\65039"]]
```
```
% pandoc -f gfm -t native
"hi"
^D
[Para [Str "\"hi\""]]
```
```
% pandoc -f gfm+smart -t native
"hi"
^D
[Para [Str "\8220hi\8221"]]
```
```
% pandoc -t gfm -f native
[Table [Str "The",Space,Str "caption."] [AlignDefault,AlignRight] [0.0,0.0]
[[Plain [Str "Fruit"]]
,[Plain [Str "Price"]]]
[[[Plain [Str "apple"]]
,[Plain [Str "0.13"]]]
,[[Plain [Str "orange"]]
,[Plain [Str "1.12"]]]]]
^D
| Fruit | Price |
| ------ | ----: |
| apple | 0.13 |
| orange | 1.12 |
The caption.
```
```
% pandoc -f gfm-smart -t gfm+smart
“hi”
^D
"hi"
```
```
% pandoc -f gfm+smart -t gfm-smart
"hi"
^D
“hi”
```
```
% pandoc -f gfm+smart -t gfm+smart
"hi"
^D
"hi"
```
```
% pandoc -f gfm+hard_line_breaks -t native
hi
hi
^D
[Para [Str "hi",LineBreak,Str "hi"]]
```
|