Files
pandoc/test/jira-reader.native

452 lines
12 KiB
Plaintext

Pandoc
Meta { unMeta = fromList [] }
[ Header
1
( "" , [] , [] )
[ Span ( "headers" , [] , [] ) [] , Str "Headers" ]
, Header
2
( "" , [] , [] )
[ Span ( "level-2-with-an-embedded-link" , [] , [] ) []
, Str "Level 2 with an "
, Link
( "" , [] , [] )
[ Str "embedded link" ]
( "https://test.example/url" , "" )
]
, Header
3
( "" , [] , [] )
[ Span ( "level-3-with-emphasis" , [] , [] ) []
, Str "Level 3 with "
, Emph [ Str "emphasis" ]
]
, Header 4 ( "" , [] , [] ) [ Str "Level 4" ]
, Header 5 ( "" , [] , [] ) [ Str "Level 5" ]
, Header 6 ( "" , [] , [] ) [ Str "Level 6" ]
, Para [ Str "h0. this is not a header." ]
, HorizontalRule
, Header 1 ( "" , [] , [] ) [ Str "Paragraphs" ]
, Para [ Str "Here\8217s a regular paragraph." ]
, Para [ Str "Here\8217s one with a bullet. * criminey." ]
, Para
[ Str "There should be a hard line break"
, LineBreak
, Str "here."
]
, HorizontalRule
, Header 1 ( "" , [] , [] ) [ Str "Block Quotes" ]
, Para [ Str "E-mail style:" ]
, BlockQuote
[ Para [ Str "This is a block quote. It is pretty short." ]
]
, BlockQuote
[ Para [ Str "Code in a block quote:" ]
, CodeBlock
( "" , [ "java" ] , [] )
"sub status {\n print \"working\";\n}\n"
, Para [ Str "An enumeration:" ]
, OrderedList
( 1 , DefaultStyle , DefaultDelim )
[ [ Para [ Str "item one" ] ]
, [ Para [ Str "item two" ] ]
]
]
, Para [ Str "A following paragraph." ]
, HorizontalRule
, Header 1 ( "" , [] , [] ) [ Str "Code Blocks" ]
, Para [ Str "Code:" ]
, CodeBlock
( "" , [ "java" ] , [] )
"---- (should be four hyphens)\n\nsub status {\n print \"working\";\n}\n"
, Para [ Str "And:" ]
, CodeBlock
( "" , [ "java" ] , [] )
" this code block is indented by two tabs\n\nThese should not be escaped: \\$ \\\\ \\> \\[ \\{\n"
, HorizontalRule
, Header
1
( "" , [] , [] )
[ Span ( "lists" , [] , [] ) [] , Str "Lists" ]
, Header
2
( "" , [] , [] )
[ Span ( "unordered" , [] , [] ) [] , Str "Unordered" ]
, Para [ Str "Asterisks:" ]
, BulletList
[ [ Para [ Str "asterisk 1" ] ]
, [ Para [ Str "asterisk 2" ] ]
, [ Para [ Str "asterisk 3" ] ]
]
, Para [ Str "Minuses:" ]
, BulletList
[ [ Para [ Str "Minus 1" ] ]
, [ Para [ Str "Minus 2" ] ]
, [ Para [ Str "Minus 3" ] ]
]
, Header 2 ( "" , [] , [] ) [ Str "Ordered" ]
, OrderedList
( 1 , DefaultStyle , DefaultDelim )
[ [ Para [ Str "First" ] ]
, [ Para [ Str "Second" ] ]
, [ Para [ Str "Third" ] ]
]
, Para [ Str "Linebreak in paragraph:" ]
, OrderedList
( 1 , DefaultStyle , DefaultDelim )
[ [ Para
[ Str "Item 1, line one."
, LineBreak
, Str
"Item 1. line two. The quick brown fox jumped over the lazy dog\8217s back."
]
]
, [ Para [ Str "Item 2." ] ]
, [ Para [ Str "Item 3." ] ]
]
, Header 2 ( "" , [] , [] ) [ Str "Nested" ]
, BulletList
[ [ Para [ Str "Tab" ]
, BulletList
[ [ Para [ Str "Tab" ]
, BulletList [ [ Para [ Str "Tab" ] ] ]
]
]
]
]
, Para [ Str "Here\8217s another:" ]
, OrderedList
( 1 , DefaultStyle , DefaultDelim )
[ [ Para [ Str "First" ] ]
, [ Para [ Str "Second:" ]
, BulletList
[ [ Para [ Str "Fee" ] ]
, [ Para [ Str "Fie" ] ]
, [ Para [ Str "Foe" ] ]
]
]
, [ Para [ Str "Third" ] ]
]
, Para [ Str "Nested enumerations:" ]
, OrderedList
( 1 , DefaultStyle , DefaultDelim )
[ [ Para [ Str "Essential" ]
, OrderedList
( 1 , DefaultStyle , DefaultDelim )
[ [ Para [ Str "Important" ]
, OrderedList
( 1 , DefaultStyle , DefaultDelim )
[ [ Para [ Str "Relevant" ]
, OrderedList
( 1 , DefaultStyle , DefaultDelim )
[ [ Para [ Str "Insignificant" ] ] ]
]
]
]
]
]
]
, HorizontalRule
, Header
1 ( "" , [] , [] ) [ Str "Linebreaks and Markup in Lists" ]
, BulletList
[ [ Para
[ Strong [ Str "apple" ] , LineBreak , Str "red fruit" ]
]
, [ Para
[ Strong [ Str "orange" ] , LineBreak , Str "orange fruit" ]
]
, [ Para
[ Strong [ Str "banana" ] , LineBreak , Str "yellow fruit" ]
]
]
, Para [ Str "Multiple blocks with italics:" ]
, BulletList
[ [ Para
[ Strong [ Emph [ Str "apple" ] ]
, LineBreak
, Str "red fruit"
, LineBreak
, Str "contains seeds, crisp, pleasant to taste"
]
]
, [ Para
[ Strong [ Emph [ Str "orange" ] ]
, LineBreak
, Str "orange fruit"
]
, CodeBlock
( "" , [ "java" ] , [] ) "{ orange code block }\n"
, BlockQuote [ Para [ Str "orange block quote" ] ]
]
]
, HorizontalRule
, Header 1 ( "" , [] , [] ) [ Str "Colored Text Blocks" ]
, Div
( "" , [] , [ ( "color" , "red" ) ] )
[ Para [ LineBreak , Str "This is red." ] ]
, Header 2 ( "" , [] , [] ) [ Str "Eiffel 65" ]
, Div
( "" , [] , [ ( "color" , "blue" ) ] )
[ Para [ LineBreak , Str "da ba dee" ] ]
, HorizontalRule
, Header 1 ( "" , [] , [] ) [ Str "Inline Markup" ]
, Para
[ Str "This is "
, Emph [ Str "emphasized" ]
, Str ", and so "
, Emph [ Str "is this" ]
, Str "."
]
, Para
[ Str "This is "
, Strong [ Str "strong" ]
, Str ", and so "
, Strong [ Str "is this" ]
, Str "."
]
, Para
[ Str "An "
, Emph
[ Link
( "" , [] , [] )
[ Str "emphasized link" ]
( "https://my.example/url" , "" )
]
, Str "."
]
, Para [ Strong [ Emph [ Str "This is strong and em." ] ] ]
, Para
[ Str "So is "
, Strong [ Emph [ Str "this" ] ]
, Str " word."
]
, Para
[ Str "This is code: "
, Code ( "" , [] , [] ) ">"
, Str ", "
, Code ( "" , [] , [] ) "$"
, Str ", "
, Code ( "" , [] , [] ) "\\"
, Str ", "
, Code ( "" , [] , [] ) "\\$"
, Str ", "
, Code ( "" , [] , [] ) "<html>"
, Str "."
]
, Para
[ Strikeout
[ Str "This is " , Emph [ Str "strikeout" ] , Str "." ]
]
, Para
[ Str "Superscripts: a"
, Superscript [ Str "bc" ]
, Str "d a"
, Superscript [ Emph [ Str "hello" ] ]
, Str " a"
, Superscript [ Str "hello\160there" ]
, Str "."
]
, Para
[ Str "Subscripts: H"
, Subscript [ Str "2" ]
, Str "O, C"
, Subscript [ Str "6" ]
, Str "H"
, Subscript [ Str "12" ]
, Str "O"
, Subscript [ Str "6" ]
, Str ", C"
, Subscript [ Str "\160n\160" ]
, Str "H"
, Subscript [ Emph [ Str "2n" ] ]
, Str "O"
, Subscript [ Str "n" ]
, Str "."
]
, Para
[ Str
"These should not be superscripts or subscripts, because of markers used within words: a^b c^d, a~b c~d."
]
, HorizontalRule
, Header 1 ( "" , [] , [] ) [ Str "Dashes, and emoticons" ]
, Para [ Str "Some dashes: one \8211 two \8212 three." ]
, Para [ Str "Sure \10004" , LineBreak , Str "Nope \10060" ]
, Para [ Str "Nice \128515" ]
, Para [ Str "Capital d:D" ]
, HorizontalRule
, Header 1 ( "" , [] , [] ) [ Str "Math" ]
, BulletList
[ [ Para [ Str "2\8197+\8197\&2\8196=\8196\&4" ] ]
, [ Para
[ Emph [ Str "x" ]
, Str "\8196\8712\8196"
, Emph [ Str "y" ]
]
]
, [ Para
[ Emph [ Str "\945" ]
, Str "\8197\8743\8197"
, Emph [ Str "\969" ]
]
]
, [ Para [ Emph [ Str "p" ] , Str "-Tree" ] ]
, [ Para
[ Str "Here\8217s one more: "
, Emph [ Str "\945" ]
, Str "\8197+\8197"
, Emph [ Str "\969" ]
, Str "\8197\215\8197"
, Emph [ Str "x" ]
, Superscript [ Str "2" ]
, Str "."
]
]
]
, HorizontalRule
, Header 1 ( "" , [] , [] ) [ Str "Special Characters" ]
, Para [ Str "Here is some unicode:" ]
, BulletList
[ [ Para [ Str "I hat: \206" ] ]
, [ Para [ Str "o umlaut: \246" ] ]
, [ Para [ Str "section: \167" ] ]
, [ Para [ Str "set membership: \8712" ] ]
, [ Para [ Str "copyright: \169" ] ]
]
, Para [ Str "AT&T has an ampersand in their name." ]
, Para [ Str "AT&T is another way to write it." ]
, Para [ Str "This & that." ]
, Para [ Str "4 < 5." ]
, Para [ Str "6 > 5." ]
, Para [ Str "Backslash: \\" ]
, Para [ Str "Backtick: `" ]
, Para [ Str "Asterisk: *" ]
, Para [ Str "Underscore: _" ]
, Para [ Str "Left brace: {" ]
, Para [ Str "Right brace: }" ]
, Para [ Str "Left bracket: [" ]
, Para [ Str "Right bracket: ]" ]
, Para [ Str "Left paren: (" ]
, Para [ Str "Right paren: )" ]
, Para [ Str "Greater-than: >" ]
, Para [ Str "Hash: #" ]
, Para [ Str "Period: ." ]
, Para [ Str "Bang: !" ]
, Para [ Str "Plus: +" ]
, Para [ Str "Minus: -" ]
, HorizontalRule
, Header 1 ( "" , [] , [] ) [ Str "Links" ]
, Header 2 ( "" , [] , [] ) [ Str "Explicit" ]
, Para
[ Str "Just a "
, Link
( "" , [] , [] )
[ Str "URL" ]
( "https://example.org/url" , "" )
, Str "."
]
, Para
[ Link
( "" , [] , [] )
[ Str "File URL" ]
( "file://some/file/name/" , "" )
, Str "."
]
, Para
[ Link
( "" , [] , [] )
[ Str "IRC link" ]
( "irc://example.org/pandoc" , "" )
, Str "."
]
, Para
[ Link
( "" , [] , [] )
[ Str "Email link" ]
( "mailto:nobody@nowhere.invalid" , "" )
]
, Para [ Str "[Not a link|not a URL]." ]
, Header 2 ( "" , [] , [] ) [ Str "Reference" ]
, Para
[ Str "With "
, Link
( "" , [] , [] )
[ Str "embedded [brackets]" ]
( "https://example.net/url/" , "" )
, Str "."
]
, Para
[ Link
( "" , [] , [] )
[ Str "https://pandoc.org" ]
( "https://pandoc.org" , "" )
, Str " by itself should be a link."
]
, Header 2 ( "" , [] , [] ) [ Str "With ampersands" ]
, Para
[ Str "Here\8217s a "
, Link
( "" , [] , [] )
[ Str "link with an ampersand in the URL" ]
( "http://example.com/?foo=1&bar=2" , "" )
, Str "."
]
, Para
[ Str
"Here\8217s a link with an ampersand in the link text: "
, Link
( "" , [] , [] ) [ Str "AT&T" ] ( "http://att.com/" , "" )
, Str "."
]
, Header 2 ( "" , [] , [] ) [ Str "Autolinks" ]
, Para
[ Str "With an ampersand: "
, Link
( "" , [] , [] )
[ Str "http://example.com/?foo=1&bar=2" ]
( "http://example.com/?foo=1&bar=2" , "" )
]
, BulletList
[ [ Para [ Str "In a list?" ] ]
, [ Para
[ Link
( "" , [] , [] )
[ Str "http://example.com/" ]
( "http://example.com/" , "" )
]
]
, [ Para [ Str "It should." ] ]
]
, Para
[ Str "An e-mail address: "
, Link
( "" , [] , [] )
[ Str "mailto:nobody@nowhere.invalid" ]
( "mailto:nobody@nowhere.invalid" , "" )
]
, BlockQuote
[ Para
[ Str "Blockquoted: "
, Link
( "" , [] , [] )
[ Str "http://example.com/" ]
( "http://example.com/" , "" )
]
]
, CodeBlock
( "" , [ "java" ] , [] )
"Autolink should not occur here: <http://example.com/>\n"
, HorizontalRule
, Header 1 ( "" , [] , [] ) [ Str "Images" ]
, Para
[ Str
"From \"Voyage dans la Lune\" by Georges Melies (1902):"
]
, Para [ Image ( "" , [] , [] ) [] ( "lalune.jpg" , "" ) ]
, Para
[ Str "Here is a movie "
, Image ( "" , [] , [] ) [] ( "movie.jpg" , "" )
, Str " icon."
]
]