git.iko.soy/typeable/pandoc
on ea2ea45 help sign in
103 lines 1.5 kB history raw
1gfm tests:
3```
4% pandoc -f gfm -t native
5| Fruit | Price |
6| ----- | ----: |
7| apple | 0.13 |
8| orange|1.12|
9^D
10[Table [] [AlignDefault,AlignRight] [0.0,0.0]
11 [[Plain [Str "Fruit"]]
12 ,[Plain [Str "Price"]]]
13 [[[Plain [Str "apple"]]
14 ,[Plain [Str "0.13"]]]
15 ,[[Plain [Str "orange"]]
16 ,[Plain [Str "1.12"]]]]]
17```
19```
20% pandoc -f gfm -t native
21~~stricken out~~
22^D
23[Para [Strikeout [Str "stricken",Space,Str "out"]]]
24```
26```
27% pandoc -f gfm -t native
28# Header
29## Header
30# -foo-bar_baz
31^D
32[Header 1 ("header",[],[]) [Str "Header"]
33,Header 2 ("header-1",[],[]) [Str "Header"]
34,Header 1 ("-foo-bar_baz",[],[]) [Str "-foo-bar_baz"]]
35```
37```
38% pandoc -f gfm -t native
39My:thumbsup:emoji:heart:
40^D
41[Para [Str "My\128077emoji\10084\65039"]]
42```
44```
45% pandoc -f gfm -t native
46"hi"
47^D
48[Para [Str "\"hi\""]]
49```
51```
52% pandoc -f gfm+smart -t native
53"hi"
54^D
55[Para [Str "\8220hi\8221"]]
56```
58```
59% pandoc -t gfm -f native
60[Table [Str "The",Space,Str "caption."] [AlignDefault,AlignRight] [0.0,0.0]
61 [[Plain [Str "Fruit"]]
62 ,[Plain [Str "Price"]]]
63 [[[Plain [Str "apple"]]
64 ,[Plain [Str "0.13"]]]
65 ,[[Plain [Str "orange"]]
66 ,[Plain [Str "1.12"]]]]]
67^D
68| Fruit | Price |
69| ------ | ----: |
70| apple | 0.13 |
71| orange | 1.12 |
73The caption.
74```
76```
77% pandoc -f gfm-smart -t gfm+smart
78“hi”
79^D
80"hi"
81```
83```
84% pandoc -f gfm+smart -t gfm-smart
85"hi"
86^D
87“hi”
88```
90```
91% pandoc -f gfm+smart -t gfm+smart
92"hi"
93^D
94"hi"
95```
97```
98% pandoc -f gfm+hard_line_breaks -t native
99hi
100hi
101^D
102[Para [Str "hi",LineBreak,Str "hi"]]
103```