Pandoc ( Meta { unMeta = fromList [ ( "author" , MetaList [ MetaInlines [ Str "John", Space, Str "MacFarlane" ] , MetaInlines [ Str "Anonymous" ] ] ) , ( "date" , MetaInlines [ Str "July", Space, Str "17,", Space, Str "2006" ] ) , ( "title" , MetaInlines [ Str "Pandoc", Space, Str "Test", Space, Str "Suite" ] ) ] } ) [ 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" , SoftBreak , Str "John" , Space , Str "Gruber\8217s" , Space , Str "markdown" , Space , Str "test" , Space , Str "suite." ] , HorizontalRule , Header 1 ( "headers", [], [] ) [ Str "Headers" ] , Header 2 ( "level-2-with-an-embedded-link", [], [] ) [ Str "Level" , Space , Str "2" , Space , Str "with" , Space , Str "an" , Space , Link ( "", [], [] ) [ Str "embedded", Space, Str "link" ] ( "/url", "" ) ] , Header 3 ( "level-3-with-emphasis", [], [] ) [ Str "Level" , Space , Str "3" , Space , Str "with" , Space , Emph [ Str "emphasis" ] ] , Header 4 ( "level-4", [], [] ) [ Str "Level", Space, Str "4" ] , Header 5 ( "level-5", [], [] ) [ Str "Level", Space, Str "5" ] , Header 1 ( "level-1", [], [] ) [ Str "Level", Space, Str "1" ] , Header 2 ( "level-2-with-emphasis", [], [] ) [ Str "Level" , Space , Str "2" , Space , Str "with" , Space , Emph [ Str "emphasis" ] ] , Header 3 ( "level-3", [], [] ) [ Str "Level", Space, Str "3" ] , Para [ Str "with", Space, Str "no", Space, Str "blank", Space, Str "line" ] , Header 2 ( "level-2", [], [] ) [ Str "Level", Space, Str "2" ] , Para [ Str "with", Space, Str "no", Space, Str "blank", Space, Str "line" ] , HorizontalRule , Header 1 ( "paragraphs", [], [] ) [ Str "Paragraphs" ] , Para [ Str "Here\8217s" , 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" , SoftBreak , Str "8." , Space , Str "This" , Space , Str "line" , Space , Str "turns" , Space , Str "into" , Space , Str "a" , Space , Str "list" , Space , Str "item." , SoftBreak , Str "Because" , Space , Str "a" , Space , Str "hard-wrapped" , Space , Str "line" , Space , Str "in" , Space , Str "the" , SoftBreak , Str "middle" , Space , Str "of" , Space , Str "a" , Space , Str "paragraph" , Space , Str "looked" , Space , Str "like" , Space , Str "a" , SoftBreak , Str "list" , Space , Str "item." ] , Para [ Str "Here\8217s" , Space , Str "one" , Space , Str "with" , Space , Str "a" , Space , Str "bullet." , SoftBreak , 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 ( "block-quotes", [], [] ) [ Str "Block", Space, Str "Quotes" ] , Para [ Str "E-mail", Space, Str "style:" ] , BlockQuote [ Para [ Str "This" , Space , Str "is" , Space , Str "a" , Space , Str "block" , Space , Str "quote." , SoftBreak , 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 ) [ [ Plain [ Str "item", Space, Str "one" ] ] , [ Plain [ 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" , SoftBreak , Str ">" , Space , Str "1." ] , Para [ Str "And" , Space , Str "a" , Space , Str "following" , Space , Str "paragraph." ] , HorizontalRule , Header 1 ( "code-blocks", [], [] ) [ 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 ( "lists", [], [] ) [ Str "Lists" ] , Header 2 ( "unordered", [], [] ) [ Str "Unordered" ] , Para [ Str "Asterisks", Space, Str "tight:" ] , BulletList [ [ Plain [ Str "asterisk", Space, Str "1" ] ] , [ Plain [ Str "asterisk", Space, Str "2" ] ] , [ Plain [ 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 [ [ Plain [ Str "Plus", Space, Str "1" ] ] , [ Plain [ Str "Plus", Space, Str "2" ] ] , [ Plain [ 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 [ [ Plain [ Str "Minus", Space, Str "1" ] ] , [ Plain [ Str "Minus", Space, Str "2" ] ] , [ Plain [ 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 ( "ordered", [], [] ) [ Str "Ordered" ] , Para [ Str "Tight:" ] , OrderedList ( 1, Decimal, Period ) [ [ Plain [ Str "First" ] ] , [ Plain [ Str "Second" ] ] , [ Plain [ Str "Third" ] ] ] , Para [ Str "and:" ] , OrderedList ( 1, Decimal, Period ) [ [ Plain [ Str "One" ] ] , [ Plain [ Str "Two" ] ] , [ Plain [ 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\8217s" , SoftBreak , Str "back." ] ] , [ Para [ Str "Item", Space, Str "2." ] ] , [ Para [ Str "Item", Space, Str "3." ] ] ] , Header 2 ( "nested", [], [] ) [ Str "Nested" ] , BulletList [ [ Plain [ Str "Tab" ] , BulletList [ [ Plain [ Str "Tab" ], BulletList [ [ Plain [ Str "Tab" ] ] ] ] ] ] ] , Para [ Str "Here\8217s", Space, Str "another:" ] , OrderedList ( 1, Decimal, Period ) [ [ Plain [ Str "First" ] ] , [ Plain [ Str "Second:" ] , BulletList [ [ Plain [ Str "Fee" ] ] , [ Plain [ Str "Fie" ] ] , [ Plain [ Str "Foe" ] ] ] ] , [ Plain [ 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 [ [ Plain [ Str "Fee" ] ] , [ Plain [ Str "Fie" ] ] , [ Plain [ Str "Foe" ] ] ] ] , [ Para [ Str "Third" ] ] ] , Header 2 ( "tabs-and-spaces", [], [] ) [ Str "Tabs", Space, Str "and", Space, Str "spaces" ] , BulletList [ [ Para [ Str "this" , Space , Str "is" , Space , Str "a" , Space , Str "list" , Space , Str "item" , SoftBreak , Str "indented" , Space , Str "with" , Space , Str "tabs" ] ] , [ Para [ Str "this" , Space , Str "is" , Space , Str "a" , Space , Str "list" , Space , Str "item" , SoftBreak , 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" , SoftBreak , 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" , SoftBreak , Str "indented" , Space , Str "with" , Space , Str "spaces" ] ] ] ] ] , Header 2 ( "fancy-list-markers", [], [] ) [ 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 ) [ [ Plain [ Str "sublist" , Space , Str "with" , Space , Str "roman" , Space , Str "numerals," , SoftBreak , Str "starting" , Space , Str "with" , Space , Str "4" ] ] , [ Plain [ Str "more", Space, Str "items" ] , OrderedList ( 1, UpperAlpha, TwoParens ) [ [ Plain [ Str "a", Space, Str "subsublist" ] ] , [ Plain [ Str "a", Space, Str "subsublist" ] ] ] ] ] ] ] , Para [ Str "Nesting:" ] , OrderedList ( 1, UpperAlpha, Period ) [ [ Plain [ Str "Upper", Space, Str "Alpha" ] , OrderedList ( 1, UpperRoman, Period ) [ [ Plain [ Str "Upper", Space, Str "Roman." ] , OrderedList ( 6, Decimal, TwoParens ) [ [ Plain [ Str "Decimal" , Space , Str "start" , Space , Str "with" , Space , Str "6" ] , OrderedList ( 3, LowerAlpha, OneParen ) [ [ Plain [ Str "Lower" , Space , Str "alpha" , Space , Str "with" , Space , Str "paren" ] ] ] ] ] ] ] ] ] , Para [ Str "Autonumbering:" ] , OrderedList ( 1, DefaultStyle, DefaultDelim ) [ [ Plain [ Str "Autonumber." ] ] , [ Plain [ Str "More." ] , OrderedList ( 1, DefaultStyle, DefaultDelim ) [ [ Plain [ Str "Nested." ] ] ] ] ] , Para [ Str "Should" , Space , Str "not" , Space , Str "be" , Space , Str "a" , Space , Str "list" , Space , Str "item:" ] , Para [ Str "M.A.\160\&2007" ] , Para [ Str "B.", Space, Str "Williams" ] , HorizontalRule , Header 1 ( "definition-lists", [], [] ) [ Str "Definition", Space, Str "Lists" ] , Para [ Str "Tight", Space, Str "using", Space, Str "spaces:" ] , DefinitionList [ ( [ Str "apple" ], [ [ Plain [ Str "red", Space, Str "fruit" ] ] ] ) , ( [ Str "orange" ], [ [ Plain [ Str "orange", Space, Str "fruit" ] ] ] ) , ( [ Str "banana" ], [ [ Plain [ Str "yellow", Space, Str "fruit" ] ] ] ) ] , Para [ Str "Tight", Space, Str "using", Space, Str "tabs:" ] , DefinitionList [ ( [ Str "apple" ], [ [ Plain [ Str "red", Space, Str "fruit" ] ] ] ) , ( [ Str "orange" ], [ [ Plain [ Str "orange", Space, Str "fruit" ] ] ] ) , ( [ Str "banana" ], [ [ Plain [ 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," , SoftBreak , 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" ] ] ] ] ) ] , Para [ Str "Multiple", Space, Str "definitions,", Space, Str "tight:" ] , DefinitionList [ ( [ Str "apple" ] , [ [ Plain [ Str "red", Space, Str "fruit" ] ] , [ Plain [ Str "computer" ] ] ] ) , ( [ Str "orange" ] , [ [ Plain [ Str "orange", Space, Str "fruit" ] ] , [ Plain [ Str "bank" ] ] ] ) ] , Para [ Str "Multiple", Space, Str "definitions,", Space, Str "loose:" ] , DefinitionList [ ( [ Str "apple" ] , [ [ Para [ Str "red", Space, Str "fruit" ] ] , [ Para [ Str "computer" ] ] ] ) , ( [ Str "orange" ] , [ [ Para [ Str "orange", Space, Str "fruit" ] ] , [ Para [ Str "bank" ] ] ] ) ] , Para [ Str "Blank" , Space , Str "line" , Space , Str "after" , Space , Str "term," , Space , Str "indented" , Space , Str "marker," , Space , Str "alternate" , Space , Str "markers:" ] , DefinitionList [ ( [ Str "apple" ] , [ [ Para [ Str "red", Space, Str "fruit" ] ] , [ Para [ Str "computer" ] ] ] ) , ( [ Str "orange" ] , [ [ Para [ Str "orange", Space, Str "fruit" ] , OrderedList ( 1, Decimal, Period ) [ [ Plain [ Str "sublist" ] ], [ Plain [ Str "sublist" ] ] ] ] ] ) ] , Header 1 ( "html-blocks", [], [] ) [ Str "HTML", Space, Str "Blocks" ] , Para [ Str "Simple" , Space , Str "block" , Space , Str "on" , Space , Str "one" , Space , Str "line:" ] , Div ( "", [], [] ) [ Plain [ Str "foo" ] ] , Para [ Str "And" , Space , Str "nested" , Space , Str "without" , Space , Str "indentation:" ] , Div ( "", [], [] ) [ Div ( "", [], [] ) [ Div ( "", [], [] ) [ Para [ Str "foo" ] ] ] , Div ( "", [], [] ) [ Plain [ Str "bar" ] ] ] , Para [ Str "Interpreted" , Space , Str "markdown" , Space , Str "in" , Space , Str "a" , Space , Str "table:" ] , RawBlock ( Format "html" ) "
" , Plain [ Str "This", Space, Str "is", Space, Emph [ Str "emphasized" ] ] , RawBlock ( Format "html" ) " | " , RawBlock ( Format "html" ) "" , Plain [ Str "And" , Space , Str "this" , Space , Str "is" , Space , Strong [ Str "strong" ] ] , RawBlock ( Format "html" ) " | " , RawBlock ( Format "html" ) "
}"
, 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"
, SoftBreak
, 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."
]
]
, SoftBreak
, 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"
, SoftBreak
, Str "contains"
, Space
, Str "a"
, Space
, Str "space.[^my"
, Space
, Str "note]"
, Space
, Str "Here"
, Space
, Str "is"
, Space
, Str "an"
, Space
, Str "inline"
, Space
, Str "note."
, Note
[ Para
[ Str "This"
, SoftBreak
, Str "is"
, Space
, Emph
[ Str "easier" ]
, Space
, Str "to"
, Space
, Str "type."
, Space
, Str "Inline"
, Space
, Str "notes"
, Space
, Str "may"
, Space
, Str "contain"
, SoftBreak
, Link
( "", [], [] )
[ Str "links" ]
( "http://google.com", "" )
, Space
, Str "and"
, Space
, Code
( "", [], [] ) "]"
, Space
, Str "verbatim"
, Space
, Str "characters,"
, SoftBreak
, 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 )
[
[ Plain
[ 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."
]
]