Pandoc (Meta {docTitle = [Str "Pandoc",Space,Str "Test",Space,Str "Suite"], docAuthors = [[Str "John",Space,Str "MacFarlane"],[Str "Anonymous"]], docDate = [Str "July",Space,Str "17,",Space,Str "2006"]}) [ Para [Str "This",Space,Str "is",Space,Str "a",Space,Str "set",Space,Str "of",Space,Str "tests",Space,Str "for",Space,Str "pandoc.",Space,Str "Most",Space,Str "of",Space,Str "them",Space,Str "are",Space,Str "adapted",Space,Str "from",Space,Str "John",Space,Str "Gruber",Apostrophe,Str "s",Space,Str "markdown",Space,Str "test",Space,Str "suite."] , HorizontalRule , Header 1 [Str "Headers"] , Header 2 [Str "Level",Space,Str "2",Space,Str "with",Space,Str "an",Space,Link [Str "embedded",Space,Str "link"] ("/url","")] , Header 3 [Str "Level",Space,Str "3",Space,Str "with",Space,Emph [Str "emphasis"]] , Para [Str "Level",Space,Str "4"] , Para [Str "Level",Space,Str "5"] , Header 1 [Str "Level",Space,Str "1"] , Header 2 [Str "Level",Space,Str "2",Space,Str "with",Space,Emph [Str "emphasis"]] , Header 3 [Str "Level",Space,Str "3"] , Para [Str "with",Space,Str "no",Space,Str "blank",Space,Str "line"] , Header 2 [Str "Level",Space,Str "2"] , Para [Str "with",Space,Str "no",Space,Str "blank",Space,Str "line"] , HorizontalRule , Header 1 [Str "Paragraphs"] , Para [Str "Here",Apostrophe,Str "s",Space,Str "a",Space,Str "regular",Space,Str "paragraph."] , Para [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",Str "-",Str "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 "Here",Apostrophe,Str "s",Space,Str "one",Space,Str "with",Space,Str "a",Space,Str "bullet.",Space,Str "*",Space,Str "criminey."] , Para [Str "There",Space,Str "should",Space,Str "be",Space,Str "a",Space,Str "hard",Space,Str "line",Space,Str "break",LineBreak,Str "here."] , HorizontalRule , Header 1 [Str "Block",Space,Str "Quotes"] , Para [Str "E",Str "-",Str "mail",Space,Str "style:"] , BlockQuote [ Para [Str "This",Space,Str "is",Space,Str "a",Space,Str "block",Space,Str "quote.",Space,Str "It",Space,Str "is",Space,Str "pretty",Space,Str "short."] ] , BlockQuote [ Para [Str "Code",Space,Str "in",Space,Str "a",Space,Str "block",Space,Str "quote:"] , CodeBlock ("",[],[]) "sub status {\n print \"working\";\n}" , Para [Str "A",Space,Str "list:"] , OrderedList (1,Decimal,Period) [ [ Para [Str "item",Space,Str "one"] ] , [ Para [Str "item",Space,Str "two"] ] ] , Para [Str "Nested",Space,Str "block",Space,Str "quotes:"] , BlockQuote [ Para [Str "nested"] ] , BlockQuote [ Para [Str "nested"] ] ] , Para [Str "This",Space,Str "should",Space,Str "not",Space,Str "be",Space,Str "a",Space,Str "block",Space,Str "quote:",Space,Str "2",Space,Str ">",Space,Str "1."] , Para [Str "Box",Str "-",Str "style:"] , BlockQuote [ Para [Str "Example:"] , CodeBlock ("",[],[]) "sub status {\n print \"working\";\n}" ] , BlockQuote [ OrderedList (1,Decimal,Period) [ [ Para [Str "do",Space,Str "laundry"] ] , [ Para [Str "take",Space,Str "out",Space,Str "the",Space,Str "trash"] ] ] ] , Para [Str "Here",Apostrophe,Str "s",Space,Str "a",Space,Str "nested",Space,Str "one:"] , BlockQuote [ Para [Str "Joe",Space,Str "said:"] , BlockQuote [ Para [Str "Don",Apostrophe,Str "t",Space,Str "quote",Space,Str "me."] ] ] , Para [Str "And",Space,Str "a",Space,Str "following",Space,Str "paragraph."] , HorizontalRule , Header 1 [Str "Code",Space,Str "Blocks"] , Para [Str "Code:"] , CodeBlock ("",[],[]) "---- (should be four hyphens)\n\nsub status {\n print \"working\";\n}\n\nthis code block is indented by one tab" , Para [Str "And:"] , CodeBlock ("",[],[]) " this code block is indented by two tabs\n\nThese should not be escaped: \\$ \\\\ \\> \\[ \\{" , HorizontalRule , Header 1 [Str "Lists"] , Header 2 [Str "Unordered"] , Para [Str "Asterisks",Space,Str "tight:"] , BulletList [ [ Para [Str "asterisk",Space,Str "1"] ] , [ Para [Str "asterisk",Space,Str "2"] ] , [ Para [Str "asterisk",Space,Str "3"] ] ] , Para [Str "Asterisks",Space,Str "loose:"] , BulletList [ [ Para [Str "asterisk",Space,Str "1"] ] , [ Para [Str "asterisk",Space,Str "2"] ] , [ Para [Str "asterisk",Space,Str "3"] ] ] , Para [Str "Pluses",Space,Str "tight:"] , BulletList [ [ Para [Str "Plus",Space,Str "1"] ] , [ Para [Str "Plus",Space,Str "2"] ] , [ Para [Str "Plus",Space,Str "3"] ] ] , Para [Str "Pluses",Space,Str "loose:"] , BulletList [ [ Para [Str "Plus",Space,Str "1"] ] , [ Para [Str "Plus",Space,Str "2"] ] , [ Para [Str "Plus",Space,Str "3"] ] ] , Para [Str "Minuses",Space,Str "tight:"] , BulletList [ [ Para [Str "Minus",Space,Str "1"] ] , [ Para [Str "Minus",Space,Str "2"] ] , [ Para [Str "Minus",Space,Str "3"] ] ] , Para [Str "Minuses",Space,Str "loose:"] , BulletList [ [ Para [Str "Minus",Space,Str "1"] ] , [ Para [Str "Minus",Space,Str "2"] ] , [ Para [Str "Minus",Space,Str "3"] ] ] , Header 2 [Str "Ordered"] , Para [Str "Tight:"] , OrderedList (1,Decimal,Period) [ [ Para [Str "First"] ] , [ Para [Str "Second"] ] , [ Para [Str "Third"] ] ] , Para [Str "and:"] , OrderedList (1,Decimal,Period) [ [ Para [Str "One"] ] , [ Para [Str "Two"] ] , [ Para [Str "Three"] ] ] , Para [Str "Loose",Space,Str "using",Space,Str "tabs:"] , OrderedList (1,Decimal,Period) [ [ Para [Str "First"] ] , [ Para [Str "Second"] ] , [ Para [Str "Third"] ] ] , Para [Str "and",Space,Str "using",Space,Str "spaces:"] , OrderedList (1,Decimal,Period) [ [ Para [Str "One"] ] , [ Para [Str "Two"] ] , [ Para [Str "Three"] ] ] , Para [Str "Multiple",Space,Str "paragraphs:"] , OrderedList (1,Decimal,Period) [ [ Para [Str "Item",Space,Str "1,",Space,Str "graf",Space,Str "one."] , Para [Str "Item",Space,Str "1.",Space,Str "graf",Space,Str "two.",Space,Str "The",Space,Str "quick",Space,Str "brown",Space,Str "fox",Space,Str "jumped",Space,Str "over",Space,Str "the",Space,Str "lazy",Space,Str "dog",Apostrophe,Str "s",Space,Str "back."] ], [ Para [Str "Item",Space,Str "2."] ] , [ Para [Str "Item",Space,Str "3."] ] ] , Header 2 [Str "Nested"] , BulletList [ [ Para [Str "Tab"] , BulletList [ [ Para [Str "Tab"] , BulletList [ [ Para [Str "Tab"] ] ] ] ] ] ] , Para [Str "Here",Apostrophe,Str "s",Space,Str "another:"] , OrderedList (1,Decimal,Period) [ [ Para [Str "First"] ] , [ Para [Str "Second:"] , BulletList [ [ Para [Str "Fee"] ] , [ Para [Str "Fie"] ] , [ Para [Str "Foe"] ] ] ], [ Para [Str "Third"] ] ] , Para [Str "Same",Space,Str "thing",Space,Str "but",Space,Str "with",Space,Str "paragraphs:"] , OrderedList (1,Decimal,Period) [ [ Para [Str "First"] ] , [ Para [Str "Second:"] , BulletList [ [ Para [Str "Fee"] ] , [ Para [Str "Fie"] ] , [ Para [Str "Foe"] ] ] ], [ Para [Str "Third"] ] ] , Header 2 [Str "Tabs",Space,Str "and",Space,Str "spaces"] , BulletList [ [ Para [Str "this",Space,Str "is",Space,Str "a",Space,Str "list",Space,Str "item",Space,Str "indented",Space,Str "with",Space,Str "tabs"] ] , [ Para [Str "this",Space,Str "is",Space,Str "a",Space,Str "list",Space,Str "item",Space,Str "indented",Space,Str "with",Space,Str "spaces"] , BulletList [ [ Para [Str "this",Space,Str "is",Space,Str "an",Space,Str "example",Space,Str "list",Space,Str "item",Space,Str "indented",Space,Str "with",Space,Str "tabs"] ] , [ Para [Str "this",Space,Str "is",Space,Str "an",Space,Str "example",Space,Str "list",Space,Str "item",Space,Str "indented",Space,Str "with",Space,Str "spaces"] ] ] ] ] , Header 2 [Str "Fancy",Space,Str "list",Space,Str "markers"] , OrderedList (2,Decimal,TwoParens) [ [ Para [Str "begins",Space,Str "with",Space,Str "2"] ] , [ Para [Str "and",Space,Str "now",Space,Str "3"] , Para [Str "with",Space,Str "a",Space,Str "continuation"] , OrderedList (4,LowerRoman,Period) [ [ Para [Str "sublist",Space,Str "with",Space,Str "roman",Space,Str "numerals,",Space,Str "starting",Space,Str "with",Space,Str "4"] ] , [ Para [Str "more",Space,Str "items"] , OrderedList (1,UpperAlpha,TwoParens) [ [ Para [Str "a",Space,Str "subsublist"] ] , [ Para [Str "a",Space,Str "subsublist"] ] ] ] ] ] ] , Para [Str "Nesting:"] , OrderedList (1,UpperAlpha,Period) [ [ Para [Str "Upper",Space,Str "Alpha"] , OrderedList (1,UpperRoman,Period) [ [ Para [Str "Upper",Space,Str "Roman."] , OrderedList (6,Decimal,TwoParens) [ [ Para [Str "Decimal",Space,Str "start",Space,Str "with",Space,Str "6"] , OrderedList (3,LowerAlpha,OneParen) [ [ Para [Str "Lower",Space,Str "alpha",Space,Str "with",Space,Str "paren"] ] ] ] ] ] ] ] ] , Para [Str "Autonumbering:"] , OrderedList (1,DefaultStyle,DefaultDelim) [ [ Para [Str "Autonumber."] ] , [ Para [Str "More."] , OrderedList (1,DefaultStyle,DefaultDelim) [ [ Para [Str "Nested."] ] ] ] ] , Para [Str "Should",Space,Str "not",Space,Str "be",Space,Str "a",Space,Str "list",Space,Str "item:"] , Para [Str "M.A.",Space,Str "2007"] , Para [Str "B.",Space,Str "Williams"] , HorizontalRule , Header 1 [Str "Definition",Space,Str "Lists"] , Para [Str "Tight",Space,Str "using",Space,Str "spaces:"] , DefinitionList [ ([Str "apple"], [ [ Para [Str "red",Space,Str "fruit"] ] ]) , ([Str "orange"], [ [ Para [Str "orange",Space,Str "fruit"] ] ]) , ([Str "banana"], [ [ Para [Str "yellow",Space,Str "fruit"] ] ]) ] , Para [Str "Tight",Space,Str "using",Space,Str "tabs:"] , DefinitionList [ ([Str "apple"], [ [ Para [Str "red",Space,Str "fruit"] ] ]) , ([Str "orange"], [ [ Para [Str "orange",Space,Str "fruit"] ] ]) , ([Str "banana"], [ [ Para [Str "yellow",Space,Str "fruit"] ] ]) ] , Para [Str "Loose:"] , DefinitionList [ ([Str "apple"], [ [ Para [Str "red",Space,Str "fruit"] ] ]) , ([Str "orange"], [ [ Para [Str "orange",Space,Str "fruit"] ] ]) , ([Str "banana"], [ [ Para [Str "yellow",Space,Str "fruit"] ] ]) ] , Para [Str "Multiple",Space,Str "blocks",Space,Str "with",Space,Str "italics:"] , DefinitionList [ ([Emph [Str "apple"]], [ [ Para [Str "red",Space,Str "fruit"] , Para [Str "contains",Space,Str "seeds,",Space,Str "crisp,",Space,Str "pleasant",Space,Str "to",Space,Str "taste"] ]]) , ([Emph [Str "orange"]], [ [ Para [Str "orange",Space,Str "fruit"] , CodeBlock ("",[],[]) "{ orange code block }" , BlockQuote [ Para [Str "orange",Space,Str "block",Space,Str "quote"] ] ]]) ] , Header 1 [Str "HTML",Space,Str "Blocks"] , Para [Str "Simple",Space,Str "block",Space,Str "on",Space,Str "one",Space,Str "line:"] , Para [Str "foo",Space,Str "And",Space,Str "nested",Space,Str "without",Space,Str "indentation:"] , Para [Str "foo",Space,Str "bar",Space,Str "Interpreted",Space,Str "markdown",Space,Str "in",Space,Str "a",Space,Str "table:"] , Para [Str "This",Space,Str "is",Space,Emph [Str "emphasized"],Space,Str "And",Space,Str "this",Space,Str "is",Space,Strong [Str "strong"],Space,Str "Here",Apostrophe,Str "s",Space,Str "a",Space,Str "simple",Space,Str "block:"] , Para [Str "foo",Space,Str "This",Space,Str "should",Space,Str "be",Space,Str "a",Space,Str "code",Space,Str "block,",Space,Str "though:"] , CodeBlock ("",[],[]) "
}",Para [Str "If",Space,Str "you",Space,Str "want,",Space,Str "you",Space,Str "can",Space,Str "indent",Space,Str "every",Space,Str "line,",Space,Str "but",Space,Str "you",Space,Str "can",Space,Str "also",Space,Str "be",Space,Str "lazy",Space,Str "and",Space,Str "just",Space,Str "indent",Space,Str "the",Space,Str "first",Space,Str "line",Space,Str "of",Space,Str "each",Space,Str "block."]],Space,Str "This",Space,Str "should",Space,Emph [Str "not"],Space,Str "be",Space,Str "a",Space,Str "footnote",Space,Str "reference,",Space,Str "because",Space,Str "it",Space,Str "contains",Space,Str "a",Space,Str "space.[",Str "^",Str "my",Space,Str "note]",Space,Str "Here",Space,Str "is",Space,Str "an",Space,Str "inline",Space,Str "note.",Note [Para [Str "This",Space,Str "is",Space,Emph [Str "easier"],Space,Str "to",Space,Str "type.",Space,Str "Inline",Space,Str "notes",Space,Str "may",Space,Str "contain",Space,Link [Str "links"] ("http://google.com",""),Space,Str "and",Space,Code "]",Space,Str "verbatim",Space,Str "characters,",Space,Str "as",Space,Str "well",Space,Str "as",Space,Str "[bracketed",Space,Str "text]."]]]
, BlockQuote
[ Para [Str "Notes",Space,Str "can",Space,Str "go",Space,Str "in",Space,Str "quotes.",Note [Para [Str "In",Space,Str "quote."]]] ]
, OrderedList (1,Decimal,Period)
[ [ Para [Str "And",Space,Str "in",Space,Str "list",Space,Str "items.",Note [Para [Str "In",Space,Str "list."]]] ]
]
, Para [Str "This",Space,Str "paragraph",Space,Str "should",Space,Str "not",Space,Str "be",Space,Str "part",Space,Str "of",Space,Str "the",Space,Str "note,",Space,Str "as",Space,Str "it",Space,Str "is",Space,Str "not",Space,Str "indented."] ]