2012-09-10 19:02:12 +02:00
|
|
|
Pandoc (Meta {docTitle = [], docAuthors = [], docDate = []})
|
|
|
|
[Header 1 [Str "header"]
|
|
|
|
,Header 2 [Str "header",Space,Str "level",Space,Str "two"]
|
|
|
|
,Header 3 [Str "header",Space,Str "level",Space,Str "3"]
|
|
|
|
,Header 4 [Str "header",Space,Emph [Str "level"],Space,Str "four"]
|
|
|
|
,Header 5 [Str "header",Space,Str "level",Space,Str "5"]
|
|
|
|
,Header 6 [Str "header",Space,Str "level",Space,Str "6"]
|
|
|
|
,Para [Str "=======",Space,Str "not",Space,Str "a",Space,Str "header",Space,Str "========"]
|
|
|
|
,Para [Str "==",Space,Str "not",Space,Str "a",Space,Str "header",Space,Str "=="]
|
|
|
|
,Header 2 [Str "emph",Space,Str "and",Space,Str "strong"]
|
|
|
|
,Para [Emph [Str "emph"],Space,Strong [Str "strong"]]
|
|
|
|
,Para [Strong [Emph [Str "strong",Space,Str "and",Space,Str "emph"]]]
|
|
|
|
,Para [Strong [Emph [Str "emph",Space,Str "inside"],Space,Str "strong"]]
|
|
|
|
,Para [Strong [Str "strong",Space,Str "with",Space,Emph [Str "emph"]]]
|
|
|
|
,Para [Emph [Strong [Str "strong",Space,Str "inside"],Space,Str "emph"]]
|
|
|
|
,Header 2 [Str "horizontal",Space,Str "rule"]
|
|
|
|
,Para [Str "top"]
|
|
|
|
,HorizontalRule
|
|
|
|
,Para [Str "bottom"]
|
|
|
|
,HorizontalRule
|
|
|
|
,Header 2 [Str "nowiki"]
|
|
|
|
,Para [Str "''not",Space,Str "emph''"]
|
|
|
|
,Header 2 [Str "strikeout"]
|
|
|
|
,Para [Strikeout [Str "This",Space,Str "is",Space,Emph [Str "struck",Space,Str "out"]]]
|
|
|
|
,Header 2 [Str "entities"]
|
|
|
|
,Para [Str "hi",Space,Str "&",Space,Str "low"]
|
|
|
|
,Para [Str "hi",Space,Str "&",Space,Str "low"]
|
|
|
|
,Para [Str "G\246del"]
|
|
|
|
,Para [Str "\777\2730"]
|
|
|
|
,Header 2 [Str "comments"]
|
|
|
|
,Para [Str "inline",Space,Str "comment"]
|
|
|
|
,Para [Str "between",Space,Str "blocks"]
|
|
|
|
,Header 2 [Str "linebreaks"]
|
|
|
|
,Para [Str "hi",LineBreak,Str "there"]
|
2012-09-13 04:15:34 +02:00
|
|
|
,Para [Str "hi",LineBreak,Str "there"]
|
|
|
|
,Header 2 [Str ":",Space,Str "indents"]
|
|
|
|
,Para [Str "hi"]
|
|
|
|
,DefinitionList
|
|
|
|
[([],
|
|
|
|
[[Plain [Str "there"]]])]
|
|
|
|
,Para [Str "bud"]
|
|
|
|
,Para [Str "hi"]
|
|
|
|
,DefinitionList
|
|
|
|
[([],
|
|
|
|
[[DefinitionList
|
|
|
|
[([],
|
|
|
|
[[Plain [Str "there"]]])]]])]
|
|
|
|
,Para [Str "bud"]
|
|
|
|
,Header 2 [Str "p",Space,Str "tags"]
|
|
|
|
,Para [Str "hi",Space,Str "there"]
|
|
|
|
,Para [Str "bud"]
|
|
|
|
,Para [Str "another"]
|
|
|
|
,Header 2 [Str "raw",Space,Str "html"]
|
2012-09-13 04:35:06 +02:00
|
|
|
,Para [Str "hi",Space,RawInline "html" "<span style=\"color:red\">",Emph [Str "there"],RawInline "html" "</span>",Str ".",Space,RawInline "html" "<ins>",Str "inserted",RawInline "html" "</ins>"]
|
2012-09-13 04:15:34 +02:00
|
|
|
,RawBlock "html" "<div class=\"special\">"
|
|
|
|
,Para [Str "hi",Space,Emph [Str "there"]]
|
2012-09-13 04:35:06 +02:00
|
|
|
,RawBlock "html" "</div>"
|
|
|
|
,Header 2 [Str "sup,",Space,Str "sub,",Space,Str "del"]
|
|
|
|
,Para [Str "H",Subscript [Str "2"],Str "O",Space,Str "base",Superscript [Emph [Str "exponent"]],Space,Strikeout [Str "hello"]]
|
|
|
|
,Header 2 [Str "inline",Space,Str "code"]
|
|
|
|
,Para [Code ("",[],[]) "*\8594*",Space,Code ("",[],[]) "typed",Space,Code ("",["haskell"],[]) ">>="]
|
|
|
|
,Header 2 [Str "code",Space,Str "blocks"]
|
|
|
|
,CodeBlock ("",[],[]) "case xs of\n (_:_) -> reverse xs\n [] -> ['*']"
|
|
|
|
,CodeBlock ("",["haskell"],[]) "case xs of\n (_:_) -> reverse xs\n [] -> ['*']"
|
|
|
|
,CodeBlock ("",["ruby","numberLines"],[("startFrom","100")]) "widgets.each do |w|\n print w.price\nend"
|
|
|
|
,Header 2 [Str "block",Space,Str "quotes"]
|
|
|
|
,Para [Str "Regular",Space,Str "paragraph"]
|
|
|
|
,BlockQuote
|
|
|
|
[Para [Str "This",Space,Str "is",Space,Str "a",Space,Str "block",Space,Str "quote."]
|
|
|
|
,Para [Str "With",Space,Str "two",Space,Str "paragraphs."]]
|
|
|
|
,Para [Str "Nother",Space,Str "paragraph."]
|
|
|
|
,Header 2 [Str "external",Space,Str "links"]
|
|
|
|
,Para [Link [Emph [Str "Google"],Space,Str "search",Space,Str "engine"] ("http://google.com","")]
|
2012-09-13 04:48:11 +02:00
|
|
|
,Para [Link [Str "http://johnmacfarlane.net/pandoc/"] ("http://johnmacfarlane.net/pandoc/","")]
|
|
|
|
,Header 2 [Str "lists"]
|
|
|
|
,BulletList
|
|
|
|
[[Plain [Str "Start",Space,Str "each",Space,Str "line"]]
|
|
|
|
,[Plain [Str "with",Space,Str "an",Space,Str "asterisk",Space,Str "(*)."]
|
|
|
|
,BulletList
|
|
|
|
[[Plain [Str "More",Space,Str "asterisks",Space,Str "gives",Space,Str "deeper"]
|
|
|
|
,BulletList
|
|
|
|
[[Plain [Str "and",Space,Str "deeper",Space,Str "levels."]]]]]]
|
|
|
|
,[Plain [Str "Line",Space,Str "breaks",LineBreak,Str "don't",Space,Str "break",Space,Str "levels."]
|
|
|
|
,BulletList
|
|
|
|
[[BulletList
|
|
|
|
[[Plain [Str "But",Space,Str "jumping",Space,Str "levels",Space,Str "creates",Space,Str "empty",Space,Str "space."]]]]]]]
|
|
|
|
,Para [Str "Any",Space,Str "other",Space,Str "start",Space,Str "ends",Space,Str "the",Space,Str "list."]
|
|
|
|
,OrderedList (1,DefaultStyle,DefaultDelim)
|
|
|
|
[[Plain [Str "Start",Space,Str "each",Space,Str "line"]]
|
|
|
|
,[Plain [Str "with",Space,Str "a",Space,Str "number",Space,Str "sign",Space,Str "(#)."]
|
|
|
|
,OrderedList (1,DefaultStyle,DefaultDelim)
|
|
|
|
[[Plain [Str "More",Space,Str "number",Space,Str "signs",Space,Str "gives",Space,Str "deeper"]
|
|
|
|
,OrderedList (1,DefaultStyle,DefaultDelim)
|
|
|
|
[[Plain [Str "and",Space,Str "deeper"]]
|
|
|
|
,[Plain [Str "levels."]]]]]]
|
|
|
|
,[Plain [Str "Line",Space,Str "breaks",LineBreak,Str "don't",Space,Str "break",Space,Str "levels."]
|
|
|
|
,OrderedList (1,DefaultStyle,DefaultDelim)
|
|
|
|
[[OrderedList (1,DefaultStyle,DefaultDelim)
|
|
|
|
[[Plain [Str "But",Space,Str "jumping",Space,Str "levels",Space,Str "creates",Space,Str "empty",Space,Str "space."]]]]]]
|
|
|
|
,[Plain [Str "Blank",Space,Str "lines"]]]
|
|
|
|
,OrderedList (1,DefaultStyle,DefaultDelim)
|
|
|
|
[[Plain [Str "end",Space,Str "the",Space,Str "list",Space,Str "and",Space,Str "start",Space,Str "another."]]]
|
|
|
|
,Para [Str "Any",Space,Str "other",Space,Str "start",Space,Str "also",Space,Str "ends",Space,Str "the",Space,Str "list."]
|
|
|
|
,DefinitionList
|
|
|
|
[([Str "item",Space,Str "1"],
|
|
|
|
[[Plain [Str "definition",Space,Str "1"]]])
|
|
|
|
,([Str "item",Space,Str "2"],
|
|
|
|
[[Plain [Str "definition",Space,Str "2-1"]]
|
|
|
|
,[Plain [Str "definition",Space,Str "2-2"]]])]
|
|
|
|
,OrderedList (1,DefaultStyle,DefaultDelim)
|
|
|
|
[[Plain [Str "one"]]
|
|
|
|
,[Plain [Str "two"]
|
|
|
|
,BulletList
|
|
|
|
[[Plain [Str "two",Space,Str "point",Space,Str "one"]]
|
|
|
|
,[Plain [Str "two",Space,Str "point",Space,Str "two"]]]]
|
|
|
|
,[Plain [Str "three"]
|
|
|
|
,DefinitionList
|
|
|
|
[([Str "three",Space,Str "item",Space,Str "one"],
|
|
|
|
[[Plain [Str "three",Space,Str "def",Space,Str "one"]]])]]
|
|
|
|
,[Plain [Str "four"]
|
|
|
|
,DefinitionList
|
|
|
|
[([],
|
|
|
|
[[Plain [Str "four",Space,Str "def",Space,Str "one"]]
|
|
|
|
,[Plain [Str "this",Space,Str "looks",Space,Str "like",Space,Str "a",Space,Str "continuation"]]
|
|
|
|
,[Plain [Str "and",Space,Str "is",Space,Str "often",Space,Str "used"]]
|
|
|
|
,[Plain [Str "instead",LineBreak,Str "of",Space,Str "<br/>"]]])]]
|
|
|
|
,[Plain [Str "five"]
|
|
|
|
,OrderedList (1,DefaultStyle,DefaultDelim)
|
|
|
|
[[Plain [Str "five",Space,Str "sub",Space,Str "1"]
|
|
|
|
,OrderedList (1,DefaultStyle,DefaultDelim)
|
|
|
|
[[Plain [Str "five",Space,Str "sub",Space,Str "1",Space,Str "sub",Space,Str "1"]]]]
|
2012-09-13 04:54:56 +02:00
|
|
|
,[Plain [Str "five",Space,Str "sub",Space,Str "2"]]]]]
|
|
|
|
,Header 2 [Str "math"]
|
|
|
|
,Para [Str "Here",Space,Str "is",Space,Str "some",Space,Math InlineMath "x=\\frac{y^\\pi}{z}",Str "."]]
|