2018-10-20 08:55:01 +02:00
|
|
|
Pandoc (Meta {unMeta = fromList [("date",MetaString "Oct 17, 2018"),("section",MetaString ""),("title",MetaString "Pandoc Man tests")]})
|
|
|
|
[Para [Str "This",Space,Str "is",Space,Str "a",Space,Str "set",Space,Str "of",Space,Str "tests",Space,Str "for",Space,Str "pandoc."]
|
2018-10-20 00:16:05 +02:00
|
|
|
,Para [Str "*",Space,Str "*",Space,Str "*",Space,Str "*",Space,Str "*"]
|
2018-10-20 08:27:04 +02:00
|
|
|
,Header 1 ("",[],[]) [Str "Headers"]
|
|
|
|
,Header 1 ("",[],[]) [Str "Level",Space,Str "1"]
|
|
|
|
,Header 2 ("",[],[]) [Str "Level",Space,Str "2"]
|
2018-10-20 00:16:05 +02:00
|
|
|
,Para [Str "*",Space,Str "*",Space,Str "*",Space,Str "*",Space,Str "*"]
|
2018-10-20 08:27:04 +02:00
|
|
|
,Header 1 ("",[],[]) [Str "Paragraphs"]
|
2018-10-19 23:27:13 +02:00
|
|
|
,Para [Str "Here's",Space,Str "a",Space,Str "regular",Space,Str "paragraph."]
|
|
|
|
,Para [Str "Another",Space,Str "paragraph",Space,Str "In",Space,Str "Markdown",Space,Str "1.0.0",Space,Str "and",Space,Str "earlier.",Space,Str "Version",Space,Str "8.",Space,Str "This",Space,Str "line",Space,Str "turns",Space,Str "into",Space,Str "a",Space,Str "list",Space,Str "item.",Space,Str "Because",Space,Str "a",Space,Str "hard-wrapped",Space,Str "line",Space,Str "in",Space,Str "the",Space,Str "middle",Space,Str "of",Space,Str "a",Space,Str "paragraph",Space,Str "looked",Space,Str "like",Space,Str "a",Space,Str "list",Space,Str "item."]
|
|
|
|
,Para [Str "There",Space,Str "should",Space,Str "be",Space,Str "a",Space,Str "hard",Space,Str "line",Space,Str "break"]
|
2018-10-16 23:21:52 +02:00
|
|
|
,Para [Str "here."]
|
2018-10-20 00:16:05 +02:00
|
|
|
,Para [Str "*",Space,Str "*",Space,Str "*",Space,Str "*",Space,Str "*"]
|
2018-10-20 08:27:04 +02:00
|
|
|
,Header 1 ("",[],[]) [Str "Block",Space,Str "Quotes"]
|
2018-10-19 23:27:13 +02:00
|
|
|
,Para [Str "Code",Space,Str "in",Space,Str "a",Space,Str "block",Space,Str "quote:"]
|
2018-10-19 08:53:33 +02:00
|
|
|
,CodeBlock ("",[],[]) "\nsub status {\n print \"working\";\n}"
|
2018-10-19 23:27:13 +02:00
|
|
|
,Para [Str "A",Space,Str "list:"]
|
2018-10-19 08:53:33 +02:00
|
|
|
,OrderedList (1,Decimal,Period)
|
2018-10-20 07:54:05 +02:00
|
|
|
[[Para [Str "item",Space,Str "one"]]
|
|
|
|
,[Para [Str "item",Space,Str "two"]]]
|
2018-10-20 08:27:04 +02:00
|
|
|
,Header 1 ("",[],[]) [Str "Code",Space,Str "Blocks"]
|
2018-10-16 23:21:52 +02:00
|
|
|
,Para [Str "Code:"]
|
2018-10-19 08:53:33 +02:00
|
|
|
,CodeBlock ("",[],[]) "\n---- (should be four hyphens)\n\nsub status {\n print \"working\";\n}\n"
|
2018-10-16 23:21:52 +02:00
|
|
|
,Para [Str "And:"]
|
2018-10-19 08:53:33 +02:00
|
|
|
,CodeBlock ("",[],[]) "\n\tthis code line is indented by one tab"
|
2018-10-20 00:16:05 +02:00
|
|
|
,Para [Str "*",Space,Str "*",Space,Str "*",Space,Str "*",Space,Str "*"]
|
2018-10-20 08:27:04 +02:00
|
|
|
,Header 1 ("",[],[]) [Str "Lists"]
|
|
|
|
,Header 2 ("",[],[]) [Str "Unordered"]
|
2018-10-16 23:21:52 +02:00
|
|
|
,Para [Str "Asterisks:"]
|
|
|
|
,BulletList
|
2018-10-20 07:54:05 +02:00
|
|
|
[[Para [Str "asterisk",Space,Str "1"]]
|
|
|
|
,[Para [Str "asterisk",Space,Str "2"]]
|
|
|
|
,[Para [Str "asterisk",Space,Str "3"]]]
|
2018-10-20 08:27:04 +02:00
|
|
|
,Header 2 ("",[],[]) [Str "Ordered"]
|
2018-10-19 08:53:33 +02:00
|
|
|
,OrderedList (1,Decimal,Period)
|
2018-10-20 07:54:05 +02:00
|
|
|
[[Para [Str "First"]]
|
|
|
|
,[Para [Str "Second"]]
|
|
|
|
,[Para [Str "Third"]]]
|
2018-10-20 08:27:04 +02:00
|
|
|
,Header 2 ("",[],[]) [Str "Nested"]
|
2018-10-16 23:21:52 +02:00
|
|
|
,BulletList
|
2018-10-20 07:54:05 +02:00
|
|
|
[[Para [Str "Tab"]
|
2018-10-16 23:21:52 +02:00
|
|
|
,BulletList
|
2018-10-20 07:54:05 +02:00
|
|
|
[[Para [Str "Tab"]
|
2018-10-16 23:21:52 +02:00
|
|
|
,BulletList
|
2018-10-20 07:54:05 +02:00
|
|
|
[[Para [Str "Tab"]]]]]]]
|
2018-10-19 23:27:13 +02:00
|
|
|
,Para [Str "Here's",Space,Str "another:"]
|
2018-10-19 08:53:33 +02:00
|
|
|
,OrderedList (1,Decimal,Period)
|
2018-10-20 07:54:05 +02:00
|
|
|
[[Para [Str "First"]]
|
|
|
|
,[Para [Str "Second:"]
|
2018-10-16 23:21:52 +02:00
|
|
|
,BulletList
|
2018-10-20 07:54:05 +02:00
|
|
|
[[Para [Str "Fee"]]
|
|
|
|
,[Para [Str "Fie"]]
|
|
|
|
,[Para [Str "Foe"]]]]
|
|
|
|
,[Para [Str "Third"]]]
|
2018-10-19 23:27:13 +02:00
|
|
|
,Para [Str "Same",Space,Str "thing:"]
|
2018-10-19 08:53:33 +02:00
|
|
|
,OrderedList (1,Decimal,Period)
|
2018-10-20 07:54:05 +02:00
|
|
|
[[Para [Str "First"]]
|
|
|
|
,[Para [Str "Second:"]
|
2018-10-16 23:21:52 +02:00
|
|
|
,BulletList
|
2018-10-20 07:54:05 +02:00
|
|
|
[[Para [Str "Fee"]]
|
|
|
|
,[Para [Str "Fie"]]
|
|
|
|
,[Para [Str "Foe"]]]]
|
|
|
|
,[Para [Str "Third"]]]
|
2018-10-20 08:27:04 +02:00
|
|
|
,Header 2 ("",[],[]) [Str "different",Space,Str "styles:"]
|
2018-10-19 08:53:33 +02:00
|
|
|
,OrderedList (1,UpperAlpha,Period)
|
2018-10-20 07:54:05 +02:00
|
|
|
[[Para [Str "Upper",Space,Str "Alpha"]
|
2018-10-19 08:53:33 +02:00
|
|
|
,OrderedList (1,UpperRoman,Period)
|
2018-10-20 07:54:05 +02:00
|
|
|
[[Para [Str "Upper",Space,Str "Roman."]
|
2018-10-19 08:53:33 +02:00
|
|
|
,OrderedList (6,Decimal,TwoParens)
|
2018-10-20 07:54:05 +02:00
|
|
|
[[Para [Str "Decimal",Space,Str "start",Space,Str "with",Space,Str "6"]
|
2018-10-19 08:53:33 +02:00
|
|
|
,OrderedList (3,LowerAlpha,OneParen)
|
2018-10-20 07:54:05 +02:00
|
|
|
[[Para [Str "Lower",Space,Str "alpha",Space,Str "with",Space,Str "paren"]]]]]]]]]
|
2018-10-20 00:16:05 +02:00
|
|
|
,Para [Str "*",Space,Str "*",Space,Str "*",Space,Str "*",Space,Str "*"]
|
2018-10-20 08:27:04 +02:00
|
|
|
,Header 1 ("",[],[]) [Str "Special",Space,Str "Characters"]
|
2018-10-19 23:27:13 +02:00
|
|
|
,Para [Str "AT&T",Space,Str "has",Space,Str "an",Space,Str "ampersand",Space,Str "in",Space,Str "their",Space,Str "name."]
|
|
|
|
,Para [Str "4",Space,Str "<",Space,Str "5."]
|
|
|
|
,Para [Str "6",Space,Str ">",Space,Str "5."]
|
|
|
|
,Para [Str "Backslash:",Space,Str "\\"]
|
|
|
|
,Para [Str "Backtick:",Space,Str "`"]
|
|
|
|
,Para [Str "Asterisk:",Space,Str "*"]
|
|
|
|
,Para [Str "Underscore:",Space,Str "_"]
|
|
|
|
,Para [Str "Left",Space,Str "brace:",Space,Str "{"]
|
|
|
|
,Para [Str "Right",Space,Str "brace:",Space,Str "}"]
|
|
|
|
,Para [Str "Left",Space,Str "bracket:",Space,Str "["]
|
|
|
|
,Para [Str "Right",Space,Str "bracket:",Space,Str "]"]
|
|
|
|
,Para [Str "Left",Space,Str "paren:",Space,Str "("]
|
|
|
|
,Para [Str "Right",Space,Str "paren:",Space,Str ")"]
|
|
|
|
,Para [Str "Greater-than:",Space,Str ">"]
|
|
|
|
,Para [Str "Hash:",Space,Str "#"]
|
|
|
|
,Para [Str "Period:",Space,Str "."]
|
|
|
|
,Para [Str "Bang:",Space,Str "!"]
|
|
|
|
,Para [Str "Plus:",Space,Str "+"]
|
|
|
|
,Para [Str "Minus:",Space,Str "-"]]
|