diff options
author | John MacFarlane <jgm@berkeley.edu> | 2017-08-08 13:17:29 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2017-08-08 13:18:27 -0700 |
commit | b6f7c4930bf13ab9b25b18869f3bde5f87144497 (patch) | |
tree | 3efff76830e441472a226c2be145e176e78a314f /test/command | |
parent | ccd4f13a4accf0366072a93b2843706e60a89a5e (diff) | |
download | pandoc-b6f7c4930bf13ab9b25b18869f3bde5f87144497.tar.gz |
CommonMark writer: support `hard_line_breaks`, `smart`.
Add tests.
Diffstat (limited to 'test/command')
-rw-r--r-- | test/command/gfm.md | 103 |
1 files changed, 103 insertions, 0 deletions
diff --git a/test/command/gfm.md b/test/command/gfm.md new file mode 100644 index 000000000..c83fa96e3 --- /dev/null +++ b/test/command/gfm.md @@ -0,0 +1,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" + + +``` |