Files
pandoc/test/creole-reader.native
T

404 lines
12 KiB
Plaintext

Pandoc
Meta { unMeta = fromList [] }
[ Header 1 ( "" , [] , [] ) [ Str "Top-level heading (1)" ]
, Header
2 ( "" , [] , [] ) [ Str "This a test for creole 0.1 (2)" ]
, Header
3 ( "" , [] , [] ) [ Str "This is a Subheading (3)" ]
, Header 4 ( "" , [] , [] ) [ Str "Subsub (4)" ]
, Header 5 ( "" , [] , [] ) [ Str "Subsubsub (5)" ]
, Para
[ Str "The ending equal signs should not be displayed:" ]
, Header 1 ( "" , [] , [] ) [ Str "Top-level heading (1)" ]
, Header
2 ( "" , [] , [] ) [ Str "This a test for creole 0.1 (2)" ]
, Header
3 ( "" , [] , [] ) [ Str "This is a Subheading (3)" ]
, Header 4 ( "" , [] , [] ) [ Str "Subsub (4)" ]
, Header 5 ( "" , [] , [] ) [ Str "Subsubsub (5)" ]
, Para
[ Str "You can make things "
, Strong [ Str "bold" ]
, Str " or "
, Emph [ Str "italic" ]
, Str " or "
, Strong [ Emph [ Str "both" ] ]
, Str " or "
, Emph [ Strong [ Str "both" ] ]
, Str "."
]
, Para
[ Str "Character formatting extends across line breaks: "
, Strong
[ Str
"bold, this is still bold. This line deliberately does not end in star-star."
]
]
, Para
[ Str
"Not bold. Character formatting does not cross paragraph boundaries."
]
, Para
[ Str "You can use "
, Link
( "" , [] , [] )
[ Str "internal links" ]
( "internal links" , "" )
, Str " or "
, Link
( "" , [] , [] )
[ Str "external links" ]
( "http://www.wikicreole.org" , "" )
, Str ", give the link a "
, Link
( "" , [] , [] )
[ Str "different" ]
( "internal links" , "" )
, Str " name."
]
, Para
[ Str "Here's another sentence: This wisdom is taken from "
, Link
( "" , [] , [] )
[ Str "Ward Cunningham's" ]
( "Ward Cunningham's" , "" )
, Str " "
, Link
( "" , [] , [] )
[ Str "Presentation at the Wikisym 06" ]
( "http://www.c2.com/doc/wikisym/WikiSym2006.pdf" , "" )
, Str "."
]
, Para
[ Str "Here's a external link without a description: "
, Link
( "" , [] , [] )
[ Str "http://www.wikicreole.org" ]
( "http://www.wikicreole.org" , "" )
]
, Para
[ Str "Be careful that italic links are rendered properly: "
, Emph
[ Link
( "" , [] , [] )
[ Str "My Book Title" ]
( "http://my.book.example/" , "" )
]
]
, Para
[ Str
"Free links without braces should be rendered as well, like "
, Link
( "" , [] , [] )
[ Str "http://www.wikicreole.org/" ]
( "http://www.wikicreole.org/" , "" )
, Str " and "
, Link
( "" , [] , [] )
[ Str "http://www.wikicreole.org/users/~example" ]
( "http://www.wikicreole.org/users/~example" , "" )
, Str "."
]
, Para
[ Str "Creole1.0 specifies that "
, Link
( "" , [] , [] ) [ Str "http://bar" ] ( "http://bar" , "" )
, Str " and "
, Link
( "" , [] , [] ) [ Str "ftp://bar" ] ( "ftp://bar" , "" )
, Str " should not render italic, something like foo:"
, Emph [ Str "bar should render as italic." ]
]
, Para
[ Str
"You can use this to draw a line to separate the page:"
]
, HorizontalRule
, Para
[ Str
"You can use lists, start it at the first column for now, please..."
]
, Para [ Str "unnumbered lists are like" ]
, BulletList
[ [ Plain [ Str "item a" ] ]
, [ Plain [ Str "item b" ] ]
, [ Plain [ Strong [ Str "bold item c" ] ] ]
]
, Para
[ Str "blank space is also permitted before lists like:" ]
, BulletList
[ [ Plain [ Str "item a" ] ]
, [ Plain [ Str "item b" ] ]
, [ Plain [ Str "item c" ]
, BulletList [ [ Plain [ Str "item c.a" ] ] ]
]
]
, Para [ Str "or you can number them" ]
, OrderedList
( 1 , DefaultStyle , DefaultDelim )
[ [ Plain
[ Link ( "" , [] , [] ) [ Str "item 1" ] ( "item 1" , "" ) ]
]
, [ Plain [ Str "item 2" ] ]
, [ Plain [ Emph [ Str " italic item 3 " ] ]
, OrderedList
( 1 , DefaultStyle , DefaultDelim )
[ [ Plain [ Str "item 3.1" ] ]
, [ Plain [ Str "item 3.2" ] ]
]
]
]
, Para [ Str "up to five levels" ]
, BulletList
[ [ Plain [ Str "1" ]
, BulletList
[ [ Plain [ Str "2" ]
, BulletList
[ [ Plain [ Str "3" ]
, BulletList
[ [ Plain [ Str "4" ]
, BulletList [ [ Plain [ Str "5" ] ] ]
]
]
]
]
]
]
]
]
, BulletList
[ [ Plain [ Str "You can have multiline list items" ] ]
, [ Plain [ Str "this is a second multiline list item" ] ]
]
, Para
[ Str
"You can use nowiki syntax if you would like do stuff like this:"
]
, CodeBlock
( "" , [] , [] )
"Guitar Chord C:\n\n||---|---|---|\n||-0-|---|---|\n||---|---|---|\n||---|-0-|---|\n||---|---|-0-|\n||---|---|---|"
, Para
[ Str "You can also use it inline nowiki "
, Code ( "" , [] , [] ) " in a sentence "
, Str " like this."
]
, Header 1 ( "" , [] , [] ) [ Str "Escapes" ]
, Para
[ Str "Normal Link: "
, Link
( "" , [] , [] )
[ Str "http://wikicreole.org/" ]
( "http://wikicreole.org/" , "" )
, Str
" - now same link, but escaped: http://wikicreole.org/"
]
, Para [ Str "Normal asterisks: **not bold**" ]
, Para [ Str "a tilde alone: ~" ]
, Para [ Str "a tilde escapes itself: ~xxx" ]
, Header 3 ( "" , [] , [] ) [ Str "Creole 0.2" ]
, Para
[ Str
"This should be a flower with the ALT text \"this is a flower\" if your wiki supports ALT text on images:"
]
, Para
[ Image
( "" , [] , [] )
[ Str "here is a red flower" ]
( "Red-Flower.jpg" , "" )
]
, Header 3 ( "" , [] , [] ) [ Str "Creole 0.4" ]
, Para [ Str "Tables are done like this:" ]
, Table
( "" , [] , [] )
(Caption Nothing [])
[ ( AlignDefault , ColWidthDefault )
, ( AlignDefault , ColWidthDefault )
]
(TableHead
( "" , [] , [] )
[ Row
( "" , [] , [] )
[ Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain [ Str "header col1" ] ]
, Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain [ Str "header col2" ] ]
]
])
[ TableBody
( "" , [] , [] )
(RowHeadColumns 0)
[]
[ Row
( "" , [] , [] )
[ Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain [ Str "col1" ] ]
, Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain [ Str "col2" ] ]
]
, Row
( "" , [] , [] )
[ Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain [ Str "you" ] ]
, Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain [ Str "can" ] ]
]
, Row
( "" , [] , [] )
[ Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain [ Str "also" ] ]
, Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain [ Str "align" , LineBreak , Str "it." ] ]
]
]
]
(TableFoot ( "" , [] , [] ) [])
, Para
[ Str
"You can format an address by simply forcing linebreaks:"
]
, Para
[ Str "My contact dates:"
, LineBreak
, Str "Pone: xyz"
, LineBreak
, Str "Fax: +45"
, LineBreak
, Str "Mobile: abc"
]
, Header 3 ( "" , [] , [] ) [ Str "Creole 0.5" ]
, Table
( "" , [] , [] )
(Caption Nothing [])
[ ( AlignDefault , ColWidthDefault )
, ( AlignDefault , ColWidthDefault )
]
(TableHead
( "" , [] , [] )
[ Row
( "" , [] , [] )
[ Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain [ Str "Header title" ] ]
, Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain [ Str "Another header title" ] ]
]
])
[ TableBody
( "" , [] , [] )
(RowHeadColumns 0)
[]
[ Row
( "" , [] , [] )
[ Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain
[ Code ( "" , [] , [] ) " //not italic text// " ]
]
, Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain
[ Code ( "" , [] , [] ) " **not bold text** " ]
]
]
, Row
( "" , [] , [] )
[ Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain [ Emph [ Str "italic text" ] ] ]
, Cell
( "" , [] , [] )
AlignDefault
(RowSpan 1)
(ColSpan 1)
[ Plain [ Strong [ Str " bold text " ] ] ]
]
]
]
(TableFoot ( "" , [] , [] ) [])
, Header 3 ( "" , [] , [] ) [ Str "Creole 1.0" ]
, Para
[ Str
"If interwiki links are setup in your wiki, this links to the WikiCreole page about Creole 1.0 test cases: "
, Link
( "" , [] , [] )
[ Str "WikiCreole:Creole1.0TestCases" ]
( "WikiCreole:Creole1.0TestCases" , "" )
, Str "."
]
, HorizontalRule
, Para
[ Str "The above test document was found on "
, Link
( "" , [] , [] )
[ Str "http://www.wikicreole.org/wiki/Creole1.0TestCases" ]
( "http://www.wikicreole.org/wiki/Creole1.0TestCases" , "" )
, Str " and downloaded from "
, Link
( "" , [] , [] )
[ Str
"http://www.wikicreole.org/attach/Creole1.0TestCases/creole1.0test.txt"
]
( "http://www.wikicreole.org/attach/Creole1.0TestCases/creole1.0test.txt"
, ""
)
, Str "."
]
, Para
[ Str
"The Creole Wiki is licensed: Copyright (C) by the contributors. Some rights reserved, license "
, Link
( "" , [] , [] )
[ Str "https://creativecommons.org/licenses/by-sa/1.0/" ]
( "BY-SA" , "" )
, Str "."
]
]