Files
pandoc/test/twiki-reader.native
T
2021-09-29 08:37:08 -07:00

594 lines
17 KiB
Plaintext

Pandoc
Meta { unMeta = fromList [] }
[ Header 1 ( "header" , [] , [] ) [ Str "header" ]
, Header
2
( "header-level-two" , [] , [] )
[ Str "header level two" ]
, Header
3 ( "header-level-3" , [] , [] ) [ Str "header level 3" ]
, Header
4
( "header-level-four" , [] , [] )
[ Str "header " , Emph [ Str "level" ] , Str " four" ]
, Header
5 ( "header-level-5" , [] , [] ) [ Str "header level 5" ]
, Header
6 ( "header-level-6" , [] , [] ) [ Str "header level 6" ]
, Para [ Str "---+++++++ not a header" ]
, Para [ Str "--++ not a header" ]
, Header
1 ( "emph-and-strong" , [] , [] ) [ Str "emph and strong" ]
, Para
[ Emph [ Str "emph" ] , Str " " , Strong [ Str "strong" ] ]
, Para [ Emph [ Strong [ Str "strong and emph" ] ] ]
, Para
[ Strong [ Emph [ Str "emph inside" ] , Str " strong" ] ]
, Para
[ Strong [ Str "strong with " , Emph [ Str "emph" ] ] ]
, Para
[ Emph [ Strong [ Str "strong inside" ] , Str " emph" ] ]
, Header
1 ( "horizontal-rule" , [] , [] ) [ Str "horizontal rule" ]
, Para [ Str "top" ]
, HorizontalRule
, Para [ Str "bottom" ]
, HorizontalRule
, Header 1 ( "nop" , [] , [] ) [ Str "nop" ]
, Para [ Str "_not emph_" ]
, Header 1 ( "entities" , [] , [] ) [ Str "entities" ]
, Para [ Str "hi & low" ]
, Para [ Str "hi & low" ]
, Para [ Str "G\246del" ]
, Para [ Str "\777\2730" ]
, Header 1 ( "comments" , [] , [] ) [ Str "comments" ]
, Para [ Str "inline comment" ]
, Para [ Str "between blocks" ]
, Header 1 ( "linebreaks" , [] , [] ) [ Str "linebreaks" ]
, Para [ Str "hi" , LineBreak , Str "there" ]
, Para [ Str "hi" , LineBreak , Str "there" ]
, Header 1 ( "inline-code" , [] , [] ) [ Str "inline code" ]
, Para
[ Code ( "" , [] , [] ) "*\8594*"
, Str " "
, Code ( "" , [] , [] ) "typed"
, Str " "
, Code ( "" , [ "haskell" ] , [] ) ">>="
]
, Header 1 ( "code-blocks" , [] , [] ) [ Str "code blocks" ]
, CodeBlock
( "" , [] , [] )
"case xs of\n (_:_) -> reverse xs\n [] -> ['*']"
, CodeBlock
( "" , [ "haskell" ] , [] )
"case xs of\n (_:_) -> reverse xs\n [] -> ['*']"
, Header
1 ( "block-quotes" , [] , [] ) [ Str "block quotes" ]
, Para [ Str "Regular paragraph" ]
, BlockQuote
[ Para [ Str "This is a block quote." ]
, Para [ Str "With two paragraphs." ]
]
, Para [ Str "Nother paragraph." ]
, Header
1 ( "external-links" , [] , [] ) [ Str "external links" ]
, Para
[ Link
( "" , [] , [] )
[ Emph [ Str "Google" ] , Str " search engine" ]
( "http://google.com" , "" )
]
, Para
[ Link
( "" , [] , [] )
[ Str "http://pandoc.org" ]
( "http://pandoc.org" , "" )
]
, Para
[ Link
( "" , [] , [] )
[ Str "http://google.com" ]
( "http://google.com" , "" )
, Str " "
, Link
( "" , [] , [] )
[ Str "http://yahoo.com" ]
( "http://yahoo.com" , "" )
]
, Para
[ Link
( "" , [] , [] )
[ Str "email me" ]
( "mailto:info@example.org" , "" )
]
, Para [ Str "http://google.com" ]
, Para [ Str "http://google.com" ]
, Para [ Str "http://google.com" ]
, Para [ Str "info@example.org" ]
, Para [ Str "info@example.org" ]
, Para [ Str "info@example.org" ]
, Header 1 ( "lists" , [] , [] ) [ Str "lists" ]
, BulletList
[ [ Plain [ Str "Start each line" ] ]
, [ Plain [ Str "with an asterisk (*)." ]
, BulletList
[ [ Plain [ Str "More asterisks gives deeper" ]
, BulletList [ [ Plain [ Str "and deeper levels." ] ] ]
]
]
]
, [ Plain
[ Str "Line breaks"
, LineBreak
, Str "don't break levels."
]
]
, [ Plain [ Str "Continuations are also possible" ]
, BulletList
[ [ Plain [ Str "and do not break the list flow" ] ] ]
]
, [ Plain [ Str "Level one" ] ]
]
, Para [ Str "Any other start ends the list." ]
, OrderedList
( 1 , DefaultStyle , DefaultDelim )
[ [ Plain [ Str "Start each line" ] ]
, [ Plain [ Str "with a number (1.)." ]
, OrderedList
( 1 , DefaultStyle , DefaultDelim )
[ [ Plain [ Str "More number signs gives deeper" ]
, OrderedList
( 1 , DefaultStyle , DefaultDelim )
[ [ Plain [ Str "and deeper" ] ]
, [ Plain [ Str "levels." ] ]
]
]
]
]
, [ Plain
[ Str "Line breaks"
, LineBreak
, Str "don't break levels."
]
]
, [ Plain [ Str "Blank lines" ] ]
]
, OrderedList
( 1 , DefaultStyle , DefaultDelim )
[ [ Plain [ Str "end the list and start another." ] ] ]
, Para [ Str "Any other start also ends the list." ]
, DefinitionList
[ ( [ Str "item 1" ]
, [ [ Plain [ Str "definition 1" ] ] ]
)
, ( [ Str "item 2" ]
, [ [ Plain [ Str "definition 2-1 definition 2-2" ] ] ]
)
, ( [ Str "item " , Emph [ Str "3" ] ]
, [ [ Plain [ Str "definition " , Emph [ Str "3" ] ] ] ]
)
]
, OrderedList
( 1 , DefaultStyle , DefaultDelim )
[ [ Plain [ Str "one" ] ]
, [ Plain [ Str "two" ]
, BulletList
[ [ Plain [ Str "two point one" ] ]
, [ Plain [ Str "two point two" ] ]
]
]
, [ Plain [ Str "three" ]
, DefinitionList
[ ( [ Str "three item one" ]
, [ [ Plain [ Str "three def one" ] ] ]
)
]
]
, [ Plain [ Str "four" ]
, DefinitionList
[ ( [ Str "four def one" ]
, [ [ Plain [ Str "this is a continuation" ] ] ]
)
]
]
, [ Plain [ Str "five" ]
, OrderedList
( 1 , DefaultStyle , DefaultDelim )
[ [ Plain [ Str "five sub 1" ]
, OrderedList
( 1 , DefaultStyle , DefaultDelim )
[ [ Plain [ Str "five sub 1 sub 1" ] ] ]
]
, [ Plain [ Str "five sub 2" ] ]
]
]
]
, OrderedList
( 1 , DefaultStyle , DefaultDelim )
[ [ Plain [ Str "other" ]
, OrderedList
( 1 , UpperRoman , DefaultDelim )
[ [ Plain [ Str "list" ] ] , [ Plain [ Str "styles" ] ] ]
]
, [ Plain [ Str "are" ]
, OrderedList
( 1 , LowerRoman , DefaultDelim )
[ [ Plain [ Str "also" ] ] , [ Plain [ Str "possible" ] ] ]
]
, [ Plain [ Str "all" ]
, OrderedList
( 1 , LowerAlpha , DefaultDelim )
[ [ Plain [ Str "the" ] ]
, [ Plain [ Str "different" ] ]
, [ Plain [ Str "styles" ] ]
]
]
, [ Plain [ Str "are" ]
, OrderedList
( 1 , UpperAlpha , DefaultDelim )
[ [ Plain [ Str "implemented" ] ]
, [ Plain [ Str "and" ] ]
, [ Plain [ Str "supported" ] ]
]
]
]
, Header 1 ( "tables" , [] , [] ) [ Str "tables" ]
, Table
( "" , [] , [] )
(Caption Nothing [])
[ ( AlignDefault , ColWidthDefault )
, ( AlignDefault , ColWidthDefault )
]
(TableHead
( "" , [] , [] )
[ Row
( "" , [] , [] )
[ Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[]
, Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[]
]
])
[ TableBody
( "" , [] , [] )
(RowHeadColumns 0)
[]
[ Row
( "" , [] , [] )
[ Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain [ Str "Orange" ] ]
, Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain [ Str "Apple" ] ]
]
, Row
( "" , [] , [] )
[ Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain [ Str "Bread" ] ]
, Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain [ Str "Pie" ] ]
]
, Row
( "" , [] , [] )
[ Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain [ Str "Butter" ] ]
, Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain [ Str "Ice cream" ] ]
]
]
]
(TableFoot ( "" , [] , [] ) [])
, Table
( "" , [] , [] )
(Caption Nothing [])
[ ( AlignLeft , ColWidthDefault )
, ( AlignLeft , ColWidthDefault )
]
(TableHead
( "" , [] , [] )
[ Row
( "" , [] , [] )
[ Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain [ Str "Orange" ] ]
, Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain [ Str "Apple" ] ]
]
])
[ TableBody
( "" , [] , [] )
(RowHeadColumns 0)
[]
[ Row
( "" , [] , [] )
[ Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain [ Str "Bread" ] ]
, Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain [ Str "Pie" ] ]
]
, Row
( "" , [] , [] )
[ Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain [ Strong [ Str "Butter" ] ] ]
, Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain [ Str "Ice cream" ] ]
]
]
]
(TableFoot ( "" , [] , [] ) [])
, Table
( "" , [] , [] )
(Caption Nothing [])
[ ( AlignLeft , ColWidthDefault )
, ( AlignLeft , ColWidthDefault )
]
(TableHead
( "" , [] , [] )
[ Row
( "" , [] , [] )
[ Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain [ Str "Orange" ] ]
, Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain [ Str "Apple" ] ]
]
])
[ TableBody
( "" , [] , [] )
(RowHeadColumns 0)
[]
[ Row
( "" , [] , [] )
[ Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain
[ Str "Bread"
, LineBreak
, LineBreak
, Str "and cheese"
]
]
, Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain
[ Str "Pie"
, LineBreak
, LineBreak
, Strong [ Str "apple" ]
, Str " and "
, Emph [ Str "carrot" ]
]
]
]
]
]
(TableFoot ( "" , [] , [] ) [])
, Table
( "" , [] , [] )
(Caption Nothing [])
[ ( AlignDefault , ColWidthDefault )
, ( AlignDefault , ColWidthDefault )
, ( AlignDefault , ColWidthDefault )
]
(TableHead
( "" , [] , [] )
[ Row
( "" , [] , [] )
[ Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[]
, Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[]
, Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[]
]
])
[ TableBody
( "" , [] , [] )
(RowHeadColumns 0)
[]
[ Row
( "" , [] , [] )
[ Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain [ Str "Orange" ] ]
, Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain [ Str "Apple" ] ]
, Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain [ Str "more" ] ]
]
, Row
( "" , [] , [] )
[ Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain [ Str "Bread" ] ]
, Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain [ Str "Pie" ] ]
, Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain [ Str "more" ] ]
]
, Row
( "" , [] , [] )
[ Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain [ Str "Butter" ] ]
, Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain [ Str "Ice cream" ] ]
, Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain [ Str "and more" ] ]
]
]
]
(TableFoot ( "" , [] , [] ) [])
, Header 1 ( "macros" , [] , [] ) [ Str "macros" ]
, Para [ Span ( "" , [ "twiki-macro" , "TEST" ] , [] ) [] ]
, Para
[ Span ( "" , [ "twiki-macro" , "TEST" ] , [] ) [ Str "" ] ]
, Para
[ Span
( "" , [ "twiki-macro" , "TEST" ] , [] )
[ Str "content with spaces" ]
]
, Para
[ Span
( "" , [ "twiki-macro" , "TEST" ] , [] )
[ Str "content with spaces" ]
]
, Para
[ Span
( ""
, [ "twiki-macro" , "TEST" ]
, [ ( "ARG1" , "test" ) ]
)
[ Str "content with spaces" ]
]
, Para
[ Span
( "" , [ "twiki-macro" , "TEST" ] , [] )
[ Str "content with spaces ARG1=test" ]
]
, Para
[ Span
( ""
, [ "twiki-macro" , "TEST" ]
, [ ( "ARG1" , "test" ) ]
)
[ Str "content with spaces" ]
]
, Para
[ Span
( ""
, [ "twiki-macro" , "TEST" ]
, [ ( "ARG1" , "test" ) , ( "ARG2" , "test2" ) ]
)
[ Str "" ]
]
, Para
[ Span
( ""
, [ "twiki-macro" , "TEST" ]
, [ ( "ARG1" , "test" ) , ( "ARG2" , "test2" ) ]
)
[ Str "" ]
]
, Para
[ Span
( ""
, [ "twiki-macro" , "TEST" ]
, [ ( "ARG1" , "test" ) , ( "ARG2" , "test2" ) ]
)
[ Str "multiline\ndoes also work" ]
]
]