Files
pandoc/test/man-reader.native
T

676 lines
20 KiB
Plaintext

Pandoc
Meta
{ unMeta =
fromList
[ ( "date" , MetaInlines [ Str "Oct 17, 2018" ] )
, ( "section" , MetaInlines [] )
, ( "title" , MetaInlines [ Str "Pandoc Man tests" ] )
]
}
[ Para [ Str "This is a set of tests for pandoc." ]
, Para [ Str "* * * * *" ]
, Header 1 ( "" , [] , [] ) [ Str "Headers" ]
, Header 1 ( "" , [] , [] ) [ Str "Level 1" ]
, Header 2 ( "" , [] , [] ) [ Str "Level 2" ]
, Para [ Str "* * * * *" ]
, Header 1 ( "" , [] , [] ) [ Str "Paragraphs" ]
, Para [ Str "Here's a regular paragraph." ]
, Para
[ Str
"Another paragraph In Markdown 1.0.0 and earlier. Version 8. This line turns into a list item. Because a hard-wrapped line in the middle of a paragraph looked like a list item."
]
, Para [ Str "There should be a hard line break" ]
, Para [ Str "here." ]
, Para [ Str "* * * * *" ]
, Header 1 ( "" , [] , [] ) [ Str "Block Quotes" ]
, Para [ Str "Code in a block quote:" ]
, BlockQuote
[ CodeBlock
( "" , [] , [] ) "sub status {\n print \"working\";\n}"
]
, Para [ Str "A list:" ]
, OrderedList
( 1 , Decimal , Period )
[ [ Para [ Str "item one" ] ]
, [ Para [ Str "item two" ] ]
]
, Header 1 ( "" , [] , [] ) [ Str "Code Blocks" ]
, Para [ Str "Code:" ]
, CodeBlock
( "" , [] , [] )
"---- (should be four hyphens)\n\nsub status {\n print \"working\";\n}\n"
, Para [ Str "And:" ]
, CodeBlock
( "" , [] , [] ) "\tthis code line is indented by one tab"
, Para [ Str "* * * * *" ]
, Header 1 ( "" , [] , [] ) [ Str "Lists" ]
, Header 2 ( "" , [] , [] ) [ Str "Unordered" ]
, Para [ Str "Asterisks:" ]
, BulletList
[ [ Para [ Str "asterisk 1" ] ]
, [ Para [ Str "asterisk 2" ] ]
, [ Para [ Str "asterisk 3" ] ]
]
, Header 2 ( "" , [] , [] ) [ Str "Ordered" ]
, OrderedList
( 1 , Decimal , Period )
[ [ Para [ Str "First" ] ]
, [ Para [ Str "Second" ] ]
, [ Para [ Str "Third" ] ]
]
, Header 2 ( "" , [] , [] ) [ Str "Nested" ]
, BulletList
[ [ Para [ Str "Tab" ]
, BulletList
[ [ Para [ Str "Tab" ]
, BulletList [ [ Para [ Str "Tab" ] ] ]
]
]
]
]
, Para [ Str "Here's 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 thing:" ]
, 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 "different styles:" ]
, OrderedList
( 1 , UpperAlpha , Period )
[ [ Para [ Str "Upper Alpha" ]
, OrderedList
( 1 , UpperRoman , Period )
[ [ Para [ Str "Upper Roman." ]
, OrderedList
( 6 , Decimal , TwoParens )
[ [ Para [ Str "Decimal start with 6" ]
, OrderedList
( 3 , LowerAlpha , OneParen )
[ [ Para [ Str "Lower alpha with paren" ] ] ]
]
]
]
]
]
]
, Header 2 ( "" , [] , [] ) [ Str "Ordered" ]
, Para [ Str "Definition lists" ]
, DefinitionList
[ ( [ Strong [ Str "term1" ] ]
, [ [ Para [ Str "definition 1" ]
, Para [ Str "continued" ]
]
]
)
, ( [ Strong [ Str "term2" ] ]
, [ [ Para [ Str "definition 2 * * * * *" ] ] ]
)
]
, Header 1 ( "" , [] , [] ) [ Str "Special Characters" ]
, Para [ Str "AT&T has an ampersand in their name." ]
, 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: -" ]
, Header 1 ( "" , [] , [] ) [ Str "Links" ]
, Para
[ Link
( "" , [] , [] )
[ Str "some randomsite" ]
( "http://example.com" , "" )
, Str "."
]
, Para
[ Link
( "" , [] , [] )
[ Str "my email address" ]
( "mailto:me@example.com" , "" )
, Str "."
]
, Header 1 ( "" , [] , [] ) [ Str "Macros" ]
, Para
[ Strong [ Str "Me Myself" ]
, Str " and I. "
, Emph [ Str "The author is John Jones." ]
, Str " It's The "
, Strong [ Str "Author" ]
, Str "."
]
, Header 1 ( "" , [] , [] ) [ Str "Tables" ]
, Table
( "" , [] , [] )
(Caption Nothing [])
[ ( AlignRight , ColWidthDefault )
, ( AlignLeft , ColWidthDefault )
, ( AlignCenter , ColWidthDefault )
, ( AlignLeft , ColWidthDefault )
]
(TableHead
( "" , [] , [] )
[ Row
( "" , [] , [] )
[ Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain [ Str "Right" ] ]
, Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain [ Str "Left" ] ]
, Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain [ Str "Center" ] ]
, Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain [ Str "Default" ] ]
]
])
[ TableBody
( "" , [] , [] )
(RowHeadColumns 0)
[]
[ Row
( "" , [] , [] )
[ Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain [ Str "12" ] ]
, Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain [ Str "12" ] ]
, Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain [ Str "12" ] ]
, Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain [ Str "12" ] ]
]
, Row
( "" , [] , [] )
[ Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain [ Str "123" ] ]
, Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain [ Str "123" ] ]
, Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain [ Str "123" ] ]
, Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain [ Str "123" ] ]
]
, Row
( "" , [] , [] )
[ Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain [ Str "1" ] ]
, Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain [ Str "1" ] ]
, Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain [ Str "1" ] ]
, Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain [ Str "1" ] ]
]
]
]
(TableFoot ( "" , [] , [] ) [])
, Table
( "" , [] , [] )
(Caption Nothing [])
[ ( AlignRight , ColWidthDefault )
, ( AlignLeft , ColWidthDefault )
, ( AlignCenter , ColWidthDefault )
, ( AlignLeft , ColWidthDefault )
]
(TableHead
( "" , [] , [] )
[ Row
( "" , [] , [] )
[ Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain [ Str "Right" ] ]
, Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain [ Str "Left" ] ]
, Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain [ Str "Center" ] ]
, Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain [ Str "Left " , Emph [ Str "more" ] ] ]
]
])
[ TableBody
( "" , [] , [] )
(RowHeadColumns 0)
[]
[ Row
( "" , [] , [] )
[ Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain [ Str "12" ] ]
, Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain [ Str "12" ] ]
, Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain [ Str "12" ] ]
, Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain [ Str "12" ] ]
]
, Row
( "" , [] , [] )
[ Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain [ Str "123" ] ]
, Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain [ Str "123" ] ]
, Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain [ Str "123" ] ]
, Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain [ Str "123" ] ]
]
, Row
( "" , [] , [] )
[ Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain [ Str "1" ] ]
, Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain [ Str "1" ] ]
, Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain [ Str "1" ] ]
, Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain [ Str "1" ] ]
]
]
]
(TableFoot ( "" , [] , [] ) [])
, Table
( "" , [] , [] )
(Caption Nothing [])
[ ( AlignCenter , ColWidthDefault )
, ( AlignLeft , ColWidthDefault )
, ( AlignRight , ColWidthDefault )
, ( AlignLeft , ColWidthDefault )
]
(TableHead
( "" , [] , [] )
[ Row
( "" , [] , [] )
[ Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain [ Str "Centered Header" ] ]
, Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain [ Str "Left Aligned" ] ]
, Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain [ Str "Right Aligned" ] ]
, Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain [ Str "Default aligned" ] ]
]
])
[ TableBody
( "" , [] , [] )
(RowHeadColumns 0)
[]
[ Row
( "" , [] , [] )
[ Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain [ Str "First" ] ]
, Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain [ Str "row" ] ]
, Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain [ Str "12.0" ] ]
, Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain
[ Str
"Example of a row that spans multiple lines."
]
]
]
, Row
( "" , [] , [] )
[ Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain [ Str "Second" ] ]
, Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain [ Str "row" ] ]
, Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain [ Str "5.0" ] ]
, Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain
[ Str
"Here\8217s another one. Note the blank line between rows."
]
]
]
]
]
(TableFoot ( "" , [] , [] ) [])
, Para [ Str "Table without column headers:" ]
, Table
( "" , [] , [] )
(Caption Nothing [])
[ ( AlignRight , ColWidthDefault )
, ( AlignLeft , ColWidthDefault )
, ( AlignCenter , ColWidthDefault )
, ( AlignRight , ColWidthDefault )
]
(TableHead ( "" , [] , [] ) [])
[ TableBody
( "" , [] , [] )
(RowHeadColumns 0)
[]
[ Row
( "" , [] , [] )
[ Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain [ Str "12" ] ]
, Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain [ Str "12" ] ]
, Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain [ Str "12" ] ]
, Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain [ Str "12" ] ]
]
, Row
( "" , [] , [] )
[ Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain [ Str "123" ] ]
, Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain [ Str "123" ] ]
, Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain [ Str "123" ] ]
, Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain [ Str "123" ] ]
]
, Row
( "" , [] , [] )
[ Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain [ Str "1" ] ]
, Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain [ Str "1" ] ]
, Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain [ Str "1" ] ]
, Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain [ Str "1" ] ]
]
]
]
(TableFoot ( "" , [] , [] ) [])
, Table
( "" , [] , [] )
(Caption Nothing [])
[ ( AlignRight , ColWidth 0.5 )
, ( AlignLeft , ColWidth 0.5 )
]
(TableHead ( "" , [] , [] ) [])
[ TableBody
( "" , [] , [] )
(RowHeadColumns 0)
[]
[ Row
( "" , [] , [] )
[ Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain [ Str "a" ] ]
, Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain [ Str "b" ] ]
]
, Row
( "" , [] , [] )
[ Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Para [ Str "one" ] , Para [ Str "two" ] ]
, Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ CodeBlock ( "" , [] , [] ) "some\n code" ]
]
]
]
(TableFoot ( "" , [] , [] ) [])
]