Pandoc Meta { unMeta = fromList [ ( "author" , MetaList [ MetaInlines [ Str "John MacFarlane" ] , MetaInlines [ Str "Anonymous" ] ] ) , ( "date" , MetaInlines [ Str "July 17, 2006" ] ) , ( "title" , MetaInlines [ Str "Pandoc Test Suite" ] ) ] } [ Para [ Str "This is a set of tests for pandoc. Most of them are adapted from" , SoftBreak , Str "John Gruber\8217s markdown test suite." ] , HorizontalRule , Header 1 ( "headers" , [] , [] ) [ Str "Headers" ] , Header 2 ( "level-2-with-an-embedded-link" , [] , [] ) [ Str "Level 2 with an " , Link ( "" , [] , [] ) [ Str "embedded link" ] ( "/url" , "" ) ] , Header 3 ( "level-3-with-emphasis" , [] , [] ) [ Str "Level 3 with " , Emph [ Str "emphasis" ] ] , Header 4 ( "level-4" , [] , [] ) [ Str "Level 4" ] , Header 5 ( "level-5" , [] , [] ) [ Str "Level 5" ] , Header 1 ( "level-1" , [] , [] ) [ Str "Level 1" ] , Header 2 ( "level-2-with-emphasis" , [] , [] ) [ Str "Level 2 with " , Emph [ Str "emphasis" ] ] , Header 3 ( "level-3" , [] , [] ) [ Str "Level 3" ] , Para [ Str "with no blank line" ] , Header 2 ( "level-2" , [] , [] ) [ Str "Level 2" ] , Para [ Str "with no blank line" ] , HorizontalRule , Header 1 ( "paragraphs" , [] , [] ) [ Str "Paragraphs" ] , Para [ Str "Here\8217s a regular paragraph." ] , Para [ Str "In Markdown 1.0.0 and earlier. Version" , SoftBreak , Str "8. This line turns into a list item." , SoftBreak , Str "Because a hard-wrapped line in the" , SoftBreak , Str "middle of a paragraph looked like a" , SoftBreak , Str "list item." ] , Para [ Str "Here\8217s one with a bullet." , SoftBreak , Str "* criminey." ] , Para [ Str "There should be a hard line break" , LineBreak , Str "here." ] , HorizontalRule , Header 1 ( "block-quotes" , [] , [] ) [ Str "Block Quotes" ] , Para [ Str "E-mail style:" ] , BlockQuote [ Para [ Str "This is a block quote." , SoftBreak , Str "It is pretty short." ] ] , BlockQuote [ Para [ Str "Code in a block quote:" ] , CodeBlock ( "" , [] , [] ) "sub status {\n print \"working\";\n}" , Para [ Str "A list:" ] , OrderedList ( 1 , Decimal , Period ) [ [ Plain [ Str "item one" ] ] , [ Plain [ Str "item two" ] ] ] , Para [ Str "Nested block quotes:" ] , BlockQuote [ Para [ Str "nested" ] ] , BlockQuote [ Para [ Str "nested" ] ] ] , Para [ Str "This should not be a block quote: 2" , SoftBreak , Str "> 1." ] , Para [ Str "And a following paragraph." ] , HorizontalRule , Header 1 ( "code-blocks" , [] , [] ) [ Str "Code 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 tight:" ] , BulletList [ [ Plain [ Str "asterisk 1" ] ] , [ Plain [ Str "asterisk 2" ] ] , [ Plain [ Str "asterisk 3" ] ] ] , Para [ Str "Asterisks loose:" ] , BulletList [ [ Para [ Str "asterisk 1" ] ] , [ Para [ Str "asterisk 2" ] ] , [ Para [ Str "asterisk 3" ] ] ] , Para [ Str "Pluses tight:" ] , BulletList [ [ Plain [ Str "Plus 1" ] ] , [ Plain [ Str "Plus 2" ] ] , [ Plain [ Str "Plus 3" ] ] ] , Para [ Str "Pluses loose:" ] , BulletList [ [ Para [ Str "Plus 1" ] ] , [ Para [ Str "Plus 2" ] ] , [ Para [ Str "Plus 3" ] ] ] , Para [ Str "Minuses tight:" ] , BulletList [ [ Plain [ Str "Minus 1" ] ] , [ Plain [ Str "Minus 2" ] ] , [ Plain [ Str "Minus 3" ] ] ] , Para [ Str "Minuses loose:" ] , BulletList [ [ Para [ Str "Minus 1" ] ] , [ Para [ Str "Minus 2" ] ] , [ Para [ Str "Minus 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 using tabs:" ] , OrderedList ( 1 , Decimal , Period ) [ [ Para [ Str "First" ] ] , [ Para [ Str "Second" ] ] , [ Para [ Str "Third" ] ] ] , Para [ Str "and using spaces:" ] , OrderedList ( 1 , Decimal , Period ) [ [ Para [ Str "One" ] ] , [ Para [ Str "Two" ] ] , [ Para [ Str "Three" ] ] ] , Para [ Str "Multiple paragraphs:" ] , OrderedList ( 1 , Decimal , Period ) [ [ Para [ Str "Item 1, graf one." ] , Para [ Str "Item 1. graf two. The quick brown fox jumped over the lazy dog\8217s" , SoftBreak , Str "back." ] ] , [ Para [ Str "Item 2." ] ] , [ Para [ Str "Item 3." ] ] ] , Header 2 ( "nested" , [] , [] ) [ Str "Nested" ] , BulletList [ [ Plain [ Str "Tab" ] , BulletList [ [ Plain [ Str "Tab" ] , BulletList [ [ Plain [ Str "Tab" ] ] ] ] ] ] ] , Para [ Str "Here\8217s 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 thing but with 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 and spaces" ] , BulletList [ [ Para [ Str "this is a list item" , SoftBreak , Str "indented with tabs" ] ] , [ Para [ Str "this is a list item" , SoftBreak , Str "indented with spaces" ] , BulletList [ [ Para [ Str "this is an example list item" , SoftBreak , Str "indented with tabs" ] ] , [ Para [ Str "this is an example list item" , SoftBreak , Str "indented with spaces" ] ] ] ] ] , Header 2 ( "fancy-list-markers" , [] , [] ) [ Str "Fancy list markers" ] , OrderedList ( 2 , Decimal , TwoParens ) [ [ Para [ Str "begins with 2" ] ] , [ Para [ Str "and now 3" ] , Para [ Str "with a continuation" ] , OrderedList ( 4 , LowerRoman , Period ) [ [ Plain [ Str "sublist with roman numerals," , SoftBreak , Str "starting with 4" ] ] , [ Plain [ Str "more items" ] , OrderedList ( 1 , UpperAlpha , TwoParens ) [ [ Plain [ Str "a subsublist" ] ] , [ Plain [ Str "a subsublist" ] ] ] ] ] ] ] , Para [ Str "Nesting:" ] , OrderedList ( 1 , UpperAlpha , Period ) [ [ Plain [ Str "Upper Alpha" ] , OrderedList ( 1 , UpperRoman , Period ) [ [ Plain [ Str "Upper Roman." ] , OrderedList ( 6 , Decimal , TwoParens ) [ [ Plain [ Str "Decimal start with 6" ] , OrderedList ( 3 , LowerAlpha , OneParen ) [ [ Plain [ Str "Lower alpha with paren" ] ] ] ] ] ] ] ] ] , Para [ Str "Autonumbering:" ] , OrderedList ( 1 , DefaultStyle , DefaultDelim ) [ [ Plain [ Str "Autonumber." ] ] , [ Plain [ Str "More." ] , OrderedList ( 1 , DefaultStyle , DefaultDelim ) [ [ Plain [ Str "Nested." ] ] ] ] ] , Para [ Str "Should not be a list item:" ] , Para [ Str "M.A.\160\&2007" ] , Para [ Str "B. Williams" ] , HorizontalRule , Header 1 ( "definition-lists" , [] , [] ) [ Str "Definition Lists" ] , Para [ Str "Tight using spaces:" ] , DefinitionList [ ( [ Str "apple" ] , [ [ Plain [ Str "red fruit" ] ] ] ) , ( [ Str "orange" ] , [ [ Plain [ Str "orange fruit" ] ] ] ) , ( [ Str "banana" ] , [ [ Plain [ Str "yellow fruit" ] ] ]) ] , Para [ Str "Tight using tabs:" ] , DefinitionList [ ( [ Str "apple" ] , [ [ Plain [ Str "red fruit" ] ] ] ) , ( [ Str "orange" ] , [ [ Plain [ Str "orange fruit" ] ] ] ) , ( [ Str "banana" ] , [ [ Plain [ Str "yellow fruit" ] ] ] ) ] , Para [ Str "Loose:" ] , DefinitionList [ ( [ Str "apple" ] , [ [ Para [ Str "red fruit" ] ] ] ) , ( [ Str "orange" ] , [ [ Para [ Str "orange fruit" ] ] ] ) , ( [ Str "banana" ] , [ [ Para [ Str "yellow fruit" ] ] ] ) ] , Para [ Str "Multiple blocks with italics:" ] , DefinitionList [ ( [ Emph [ Str "apple" ] ] , [ [ Para [ Str "red fruit" ] , Para [ Str "contains seeds," , SoftBreak , Str "crisp, pleasant to taste" ] ] ] ) , ( [ Emph [ Str "orange" ] ] , [ [ Para [ Str "orange fruit" ] , CodeBlock ( "" , [] , [] ) "{ orange code block }" , BlockQuote [ Para [ Str "orange block quote" ] ] ] ] ) ] , Para [ Str "Multiple definitions, tight:" ] , DefinitionList [ ( [ Str "apple" ] , [ [ Plain [ Str "red fruit" ] ] , [ Plain [ Str "computer" ] ] ] ) , ( [ Str "orange" ] , [ [ Plain [ Str "orange fruit" ] ] , [ Plain [ Str "bank" ] ] ] ) ] , Para [ Str "Multiple definitions, loose:" ] , DefinitionList [ ( [ Str "apple" ] , [ [ Para [ Str "red fruit" ] ] , [ Para [ Str "computer" ] ] ] ) , ( [ Str "orange" ] , [ [ Para [ Str "orange fruit" ] ] , [ Para [ Str "bank" ] ] ] ) ] , Para [ Str "Blank line after term, indented marker, alternate markers:" ] , DefinitionList [ ( [ Str "apple" ] , [ [ Para [ Str "red fruit" ] ] , [ Para [ Str "computer" ] ] ] ) , ( [ Str "orange" ] , [ [ Para [ Str "orange fruit" ] , OrderedList ( 1 , Decimal , Period ) [ [ Plain [ Str "sublist" ] ] , [ Plain [ Str "sublist" ] ] ] ] ] ) ] , Header 1 ( "html-blocks" , [] , [] ) [ Str "HTML Blocks" ] , Para [ Str "Simple block on one line:" ] , Div ( "" , [] , [] ) [ Plain [ Str "foo" ] ] , Para [ Str "And nested without indentation:" ] , Div ( "" , [] , [] ) [ Div ( "" , [] , [] ) [ Div ( "" , [] , [] ) [ Para [ Str "foo" ] ] ] , Div ( "" , [] , [] ) [ Plain [ Str "bar" ] ] ] , Para [ Str "Interpreted markdown in a table:" ] , RawBlock (Format "html") "
| " , Plain [ Str "This is " , Emph [ Str "emphasized" ] ] , RawBlock (Format "html") " | " , RawBlock (Format "html") "" , Plain [ Str "And this is " , Strong [ Str "strong" ] ] , RawBlock (Format "html") " | " , RawBlock (Format "html") "
}"
, Para
[ Str
"If you want, you can indent every line, but you can also be"
, SoftBreak
, Str "lazy and just indent the first line of each block."
]
]
, SoftBreak
, Str "This should "
, Emph [ Str "not" ]
, Str " be a footnote reference, because it"
, SoftBreak
, Str "contains a space.[^my note] Here is an inline note."
, Note
[ Para
[ Str "This"
, SoftBreak
, Str "is "
, Emph [ Str "easier" ]
, Str " to type. Inline notes may contain"
, SoftBreak
, Link
( "" , [] , [] )
[ Str "links" ]
( "http://google.com" , "" )
, Str " and "
, Code ( "" , [] , [] ) "]"
, Str " verbatim characters,"
, SoftBreak
, Str "as well as [bracketed text]."
]
]
]
, BlockQuote
[ Para
[ Str "Notes can go in quotes."
, Note [ Para [ Str "In quote." ] ]
]
]
, OrderedList
( 1 , Decimal , Period )
[ [ Plain
[ Str "And in list items." , Note [ Para [ Str "In list." ] ] ]
]
]
, Para
[ Str
"This paragraph should not be part of the note, as it is not indented."
]
]