2010-02-28 09:13:48 +01:00
|
|
|
Pandoc (Meta {docTitle = [Str "Pandoc",Space,Str "Test",Space,Str "Suite",Str ":",Space,Str "Subtitle"], docAuthors = [[Str "John",Space,Str "MacFarlane"],[Str "Anonymous"]], docDate = [Str "July",Space,Str "17,",Space,Str "2006"]})
|
2011-01-21 07:36:40 +01:00
|
|
|
[DefinitionList
|
|
|
|
[([Str "Revision"],
|
2011-01-27 02:18:02 +01:00
|
|
|
[[Para [Str "3"]]])]
|
2012-10-30 06:45:52 +01:00
|
|
|
,Header 1 ("",[],[]) [Str "Level",Space,Str "one",Space,Str "header"]
|
2012-09-28 01:45:06 +02:00
|
|
|
,Para [Str "This",Space,Str "is",Space,Str "a",Space,Str "set",Space,Str "of",Space,Str "tests",Space,Str "for",Space,Str "pandoc.",Space,Str "Most",Space,Str "of",Space,Str "them",Space,Str "are",Space,Str "adapted",Space,Str "from",Space,Str "John",Space,Str "Gruber\8217s",Space,Str "markdown",Space,Str "test",Space,Str "suite."]
|
2012-10-30 06:45:52 +01:00
|
|
|
,Header 2 ("",[],[]) [Str "Level",Space,Str "two",Space,Str "header"]
|
|
|
|
,Header 3 ("",[],[]) [Str "Level",Space,Str "three"]
|
|
|
|
,Header 4 ("",[],[]) [Str "Level",Space,Str "four",Space,Str "with",Space,Emph [Str "emphasis"]]
|
|
|
|
,Header 5 ("",[],[]) [Str "Level",Space,Str "five"]
|
|
|
|
,Header 1 ("",[],[]) [Str "Paragraphs"]
|
2012-09-28 01:45:06 +02:00
|
|
|
,Para [Str "Here\8217s",Space,Str "a",Space,Str "regular",Space,Str "paragraph."]
|
|
|
|
,Para [Str "In",Space,Str "Markdown",Space,Str "1.0.0",Space,Str "and",Space,Str "earlier.",Space,Str "Version",Space,Str "8.",Space,Str "This",Space,Str "line",Space,Str "turns",Space,Str "into",Space,Str "a",Space,Str "list",Space,Str "item.",Space,Str "Because",Space,Str "a",Space,Str "hard-wrapped",Space,Str "line",Space,Str "in",Space,Str "the",Space,Str "middle",Space,Str "of",Space,Str "a",Space,Str "paragraph",Space,Str "looked",Space,Str "like",Space,Str "a",Space,Str "list",Space,Str "item."]
|
|
|
|
,Para [Str "Here\8217s",Space,Str "one",Space,Str "with",Space,Str "a",Space,Str "bullet.",Space,Str "*",Space,Str "criminey."]
|
|
|
|
,Para [Str "Horizontal",Space,Str "rule:"]
|
2011-01-21 07:36:40 +01:00
|
|
|
,HorizontalRule
|
2012-09-28 01:45:06 +02:00
|
|
|
,Para [Str "Another:"]
|
2011-01-21 07:36:40 +01:00
|
|
|
,HorizontalRule
|
2012-10-30 06:45:52 +01:00
|
|
|
,Header 1 ("",[],[]) [Str "Block",Space,Str "Quotes"]
|
2012-09-28 01:45:06 +02:00
|
|
|
,Para [Str "Here\8217s",Space,Str "a",Space,Str "block",Space,Str "quote:"]
|
2011-01-21 07:36:40 +01:00
|
|
|
,BlockQuote
|
2012-09-28 01:45:06 +02:00
|
|
|
[Para [Str "This",Space,Str "is",Space,Str "a",Space,Str "block",Space,Str "quote.",Space,Str "It",Space,Str "is",Space,Str "pretty",Space,Str "short."]]
|
|
|
|
,Para [Str "Here\8217s",Space,Str "another,",Space,Str "differently",Space,Str "indented:"]
|
2011-01-21 07:36:40 +01:00
|
|
|
,BlockQuote
|
2012-09-28 01:45:06 +02:00
|
|
|
[Para [Str "This",Space,Str "is",Space,Str "a",Space,Str "block",Space,Str "quote.",Space,Str "It\8217s",Space,Str "indented",Space,Str "with",Space,Str "a",Space,Str "tab."]
|
|
|
|
,Para [Str "Code",Space,Str "in",Space,Str "a",Space,Str "block",Space,Str "quote:"]
|
2011-01-21 07:36:40 +01:00
|
|
|
,CodeBlock ("",[],[]) "sub status {\n print \"working\";\n}"
|
2012-09-28 01:45:06 +02:00
|
|
|
,Para [Str "List",Space,Str "in",Space,Str "a",Space,Str "block",Space,Str "quote:"]
|
2011-01-21 07:36:40 +01:00
|
|
|
,OrderedList (1,Decimal,Period)
|
|
|
|
[[Plain [Str "item",Space,Str "one"]]
|
|
|
|
,[Plain [Str "item",Space,Str "two"]]]
|
2012-09-28 01:45:06 +02:00
|
|
|
,Para [Str "Nested",Space,Str "block",Space,Str "quotes:"]
|
2011-01-21 07:36:40 +01:00
|
|
|
,BlockQuote
|
|
|
|
[Para [Str "nested"]
|
|
|
|
,BlockQuote
|
|
|
|
[Para [Str "nested"]]]]
|
2012-10-30 06:45:52 +01:00
|
|
|
,Header 1 ("",[],[]) [Str "Code",Space,Str "Blocks"]
|
2012-09-28 01:45:06 +02:00
|
|
|
,Para [Str "Code:"]
|
2011-01-21 07:36:40 +01:00
|
|
|
,CodeBlock ("",[],[]) "---- (should be four hyphens)\n\nsub status {\n print \"working\";\n}"
|
|
|
|
,CodeBlock ("",[],[]) "this code block is indented by one tab"
|
2012-09-28 01:45:06 +02:00
|
|
|
,Para [Str "And:"]
|
2011-01-21 07:36:40 +01:00
|
|
|
,CodeBlock ("",[],[]) "this block is indented by two tabs\n\nThese should not be escaped: \\$ \\\\ \\> \\[ \\{"
|
2012-09-28 01:45:06 +02:00
|
|
|
,Para [Str "And:"]
|
2011-01-21 07:36:40 +01:00
|
|
|
,CodeBlock ("",["sourceCode","python"],[]) "def my_function(x):\n return x + 1"
|
2012-10-30 06:45:52 +01:00
|
|
|
,Header 1 ("",[],[]) [Str "Lists"]
|
|
|
|
,Header 2 ("",[],[]) [Str "Unordered"]
|
2012-09-28 01:45:06 +02:00
|
|
|
,Para [Str "Asterisks",Space,Str "tight:"]
|
2011-01-21 07:36:40 +01:00
|
|
|
,BulletList
|
|
|
|
[[Plain [Str "asterisk",Space,Str "1"]]
|
|
|
|
,[Plain [Str "asterisk",Space,Str "2"]]
|
|
|
|
,[Plain [Str "asterisk",Space,Str "3"]]]
|
2012-09-28 01:45:06 +02:00
|
|
|
,Para [Str "Asterisks",Space,Str "loose:"]
|
2011-01-21 07:36:40 +01:00
|
|
|
,BulletList
|
|
|
|
[[Para [Str "asterisk",Space,Str "1"]]
|
|
|
|
,[Para [Str "asterisk",Space,Str "2"]]
|
|
|
|
,[Para [Str "asterisk",Space,Str "3"]]]
|
2012-09-28 01:45:06 +02:00
|
|
|
,Para [Str "Pluses",Space,Str "tight:"]
|
2011-01-21 07:36:40 +01:00
|
|
|
,BulletList
|
|
|
|
[[Plain [Str "Plus",Space,Str "1"]]
|
|
|
|
,[Plain [Str "Plus",Space,Str "2"]]
|
|
|
|
,[Plain [Str "Plus",Space,Str "3"]]]
|
2012-09-28 01:45:06 +02:00
|
|
|
,Para [Str "Pluses",Space,Str "loose:"]
|
2011-01-21 07:36:40 +01:00
|
|
|
,BulletList
|
|
|
|
[[Para [Str "Plus",Space,Str "1"]]
|
|
|
|
,[Para [Str "Plus",Space,Str "2"]]
|
|
|
|
,[Para [Str "Plus",Space,Str "3"]]]
|
2012-09-28 01:45:06 +02:00
|
|
|
,Para [Str "Minuses",Space,Str "tight:"]
|
2011-01-21 07:36:40 +01:00
|
|
|
,BulletList
|
|
|
|
[[Plain [Str "Minus",Space,Str "1"]]
|
|
|
|
,[Plain [Str "Minus",Space,Str "2"]]
|
|
|
|
,[Plain [Str "Minus",Space,Str "3"]]]
|
2012-09-28 01:45:06 +02:00
|
|
|
,Para [Str "Minuses",Space,Str "loose:"]
|
2011-01-21 07:36:40 +01:00
|
|
|
,BulletList
|
|
|
|
[[Para [Str "Minus",Space,Str "1"]]
|
|
|
|
,[Para [Str "Minus",Space,Str "2"]]
|
|
|
|
,[Para [Str "Minus",Space,Str "3"]]]
|
2012-10-30 06:45:52 +01:00
|
|
|
,Header 2 ("",[],[]) [Str "Ordered"]
|
2012-09-28 01:45:06 +02:00
|
|
|
,Para [Str "Tight:"]
|
2011-01-21 07:36:40 +01:00
|
|
|
,OrderedList (1,Decimal,Period)
|
|
|
|
[[Plain [Str "First"]]
|
|
|
|
,[Plain [Str "Second"]]
|
|
|
|
,[Plain [Str "Third"]]]
|
2012-09-28 01:45:06 +02:00
|
|
|
,Para [Str "and:"]
|
2011-01-21 07:36:40 +01:00
|
|
|
,OrderedList (1,Decimal,Period)
|
|
|
|
[[Plain [Str "One"]]
|
|
|
|
,[Plain [Str "Two"]]
|
|
|
|
,[Plain [Str "Three"]]]
|
2012-09-28 01:45:06 +02:00
|
|
|
,Para [Str "Loose",Space,Str "using",Space,Str "tabs:"]
|
2011-01-21 07:36:40 +01:00
|
|
|
,OrderedList (1,Decimal,Period)
|
|
|
|
[[Para [Str "First"]]
|
|
|
|
,[Para [Str "Second"]]
|
|
|
|
,[Para [Str "Third"]]]
|
2012-09-28 01:45:06 +02:00
|
|
|
,Para [Str "and",Space,Str "using",Space,Str "spaces:"]
|
2011-01-21 07:36:40 +01:00
|
|
|
,OrderedList (1,Decimal,Period)
|
|
|
|
[[Para [Str "One"]]
|
|
|
|
,[Para [Str "Two"]]
|
|
|
|
,[Para [Str "Three"]]]
|
2012-09-28 01:45:06 +02:00
|
|
|
,Para [Str "Multiple",Space,Str "paragraphs:"]
|
2011-01-21 07:36:40 +01:00
|
|
|
,OrderedList (1,Decimal,Period)
|
2012-09-28 01:45:06 +02:00
|
|
|
[[Para [Str "Item",Space,Str "1,",Space,Str "graf",Space,Str "one."]
|
|
|
|
,Para [Str "Item",Space,Str "1.",Space,Str "graf",Space,Str "two.",Space,Str "The",Space,Str "quick",Space,Str "brown",Space,Str "fox",Space,Str "jumped",Space,Str "over",Space,Str "the",Space,Str "lazy",Space,Str "dog\8217s",Space,Str "back."]]
|
|
|
|
,[Para [Str "Item",Space,Str "2."]]
|
|
|
|
,[Para [Str "Item",Space,Str "3."]]]
|
|
|
|
,Para [Str "Nested:"]
|
2011-01-21 07:36:40 +01:00
|
|
|
,BulletList
|
|
|
|
[[Para [Str "Tab"]
|
|
|
|
,BulletList
|
|
|
|
[[Para [Str "Tab"]
|
|
|
|
,BulletList
|
|
|
|
[[Plain [Str "Tab"]]]]]]]
|
2012-09-28 01:45:06 +02:00
|
|
|
,Para [Str "Here\8217s",Space,Str "another:"]
|
2011-01-21 07:36:40 +01:00
|
|
|
,OrderedList (1,Decimal,Period)
|
|
|
|
[[Para [Str "First"]]
|
2012-09-28 01:45:06 +02:00
|
|
|
,[Para [Str "Second:"]
|
2011-01-21 07:36:40 +01:00
|
|
|
,BlockQuote
|
|
|
|
[BulletList
|
|
|
|
[[Plain [Str "Fee"]]
|
|
|
|
,[Plain [Str "Fie"]]
|
|
|
|
,[Plain [Str "Foe"]]]]]
|
|
|
|
,[Para [Str "Third"]]]
|
2012-10-30 06:45:52 +01:00
|
|
|
,Header 2 ("",[],[]) [Str "Fancy",Space,Str "list",Space,Str "markers"]
|
2011-01-21 07:36:40 +01:00
|
|
|
,OrderedList (2,Decimal,TwoParens)
|
|
|
|
[[Plain [Str "begins",Space,Str "with",Space,Str "2"]]
|
|
|
|
,[Para [Str "and",Space,Str "now",Space,Str "3"]
|
|
|
|
,Para [Str "with",Space,Str "a",Space,Str "continuation"]
|
|
|
|
,OrderedList (4,LowerRoman,Period)
|
|
|
|
[[Plain [Str "sublist",Space,Str "with",Space,Str "roman",Space,Str "numerals,",Space,Str "starting",Space,Str "with",Space,Str "4"]]
|
|
|
|
,[Para [Str "more",Space,Str "items"]
|
|
|
|
,OrderedList (1,UpperAlpha,TwoParens)
|
|
|
|
[[Plain [Str "a",Space,Str "subsublist"]]
|
|
|
|
,[Plain [Str "a",Space,Str "subsublist"]]]]]]]
|
2012-09-28 01:45:06 +02:00
|
|
|
,Para [Str "Nesting:"]
|
2011-01-21 07:36:40 +01:00
|
|
|
,OrderedList (1,UpperAlpha,Period)
|
|
|
|
[[Para [Str "Upper",Space,Str "Alpha"]
|
|
|
|
,OrderedList (1,UpperRoman,Period)
|
2012-09-28 01:45:06 +02:00
|
|
|
[[Para [Str "Upper",Space,Str "Roman."]
|
2011-01-21 07:36:40 +01:00
|
|
|
,OrderedList (6,Decimal,TwoParens)
|
|
|
|
[[Para [Str "Decimal",Space,Str "start",Space,Str "with",Space,Str "6"]
|
|
|
|
,OrderedList (3,LowerAlpha,OneParen)
|
|
|
|
[[Plain [Str "Lower",Space,Str "alpha",Space,Str "with",Space,Str "paren"]]]]]]]]]
|
2012-09-28 01:45:06 +02:00
|
|
|
,Para [Str "Autonumbering:"]
|
2011-01-21 07:36:40 +01:00
|
|
|
,OrderedList (1,DefaultStyle,DefaultDelim)
|
2012-09-28 01:45:06 +02:00
|
|
|
[[Plain [Str "Autonumber."]]
|
|
|
|
,[Para [Str "More."]
|
2011-01-21 07:36:40 +01:00
|
|
|
,OrderedList (1,DefaultStyle,DefaultDelim)
|
2012-09-28 01:45:06 +02:00
|
|
|
[[Plain [Str "Nested."]]]]]
|
|
|
|
,Para [Str "Autonumbering",Space,Str "with",Space,Str "explicit",Space,Str "start:"]
|
2011-01-21 07:36:40 +01:00
|
|
|
,OrderedList (4,LowerAlpha,TwoParens)
|
|
|
|
[[Plain [Str "item",Space,Str "1"]]
|
|
|
|
,[Plain [Str "item",Space,Str "2"]]]
|
2012-10-30 06:45:52 +01:00
|
|
|
,Header 2 ("",[],[]) [Str "Definition"]
|
2011-01-21 07:36:40 +01:00
|
|
|
,DefinitionList
|
|
|
|
[([Str "term",Space,Str "1"],
|
2012-09-28 01:45:06 +02:00
|
|
|
[[Para [Str "Definition",Space,Str "1."]]])
|
2011-01-21 07:36:40 +01:00
|
|
|
,([Str "term",Space,Str "2"],
|
2012-09-28 01:45:06 +02:00
|
|
|
[[Para [Str "Definition",Space,Str "2,",Space,Str "paragraph",Space,Str "1."]
|
|
|
|
,Para [Str "Definition",Space,Str "2,",Space,Str "paragraph",Space,Str "2."]]])
|
2011-01-21 07:36:40 +01:00
|
|
|
,([Str "term",Space,Str "with",Space,Emph [Str "emphasis"]],
|
2012-09-28 01:45:06 +02:00
|
|
|
[[Para [Str "Definition",Space,Str "3."]]])]
|
2012-10-30 06:45:52 +01:00
|
|
|
,Header 1 ("",[],[]) [Str "Field",Space,Str "Lists"]
|
2011-01-27 02:18:02 +01:00
|
|
|
,BlockQuote
|
|
|
|
[DefinitionList
|
|
|
|
[([Str "address"],
|
2012-09-28 01:45:06 +02:00
|
|
|
[[Para [Str "61",Space,Str "Main",Space,Str "St."]]])
|
2011-01-27 02:18:02 +01:00
|
|
|
,([Str "city"],
|
|
|
|
[[Para [Emph [Str "Nowhere"],Str ",",Space,Str "MA,",Space,Str "USA"]]])
|
|
|
|
,([Str "phone"],
|
2012-09-28 01:45:06 +02:00
|
|
|
[[Para [Str "123-4567"]]])]]
|
2011-01-21 07:36:40 +01:00
|
|
|
,DefinitionList
|
|
|
|
[([Str "address"],
|
2012-09-28 01:45:06 +02:00
|
|
|
[[Para [Str "61",Space,Str "Main",Space,Str "St."]]])
|
2011-01-21 07:36:40 +01:00
|
|
|
,([Str "city"],
|
2011-01-27 02:18:02 +01:00
|
|
|
[[Para [Emph [Str "Nowhere"],Str ",",Space,Str "MA,",Space,Str "USA"]]])
|
2011-01-21 07:36:40 +01:00
|
|
|
,([Str "phone"],
|
2012-09-28 01:45:06 +02:00
|
|
|
[[Para [Str "123-4567"]]])]
|
2012-10-30 06:45:52 +01:00
|
|
|
,Header 1 ("",[],[]) [Str "HTML",Space,Str "Blocks"]
|
2012-09-28 01:45:06 +02:00
|
|
|
,Para [Str "Simple",Space,Str "block",Space,Str "on",Space,Str "one",Space,Str "line:"]
|
2012-09-30 18:59:22 +02:00
|
|
|
,RawBlock "html" "<div>foo</div>"
|
2012-09-28 01:45:06 +02:00
|
|
|
,Para [Str "Now,",Space,Str "nested:"]
|
2012-09-30 18:59:22 +02:00
|
|
|
,RawBlock "html" "<div>\n <div>\n <div>\n foo\n </div>\n </div>\n</div>"
|
2012-10-30 06:45:52 +01:00
|
|
|
,Header 1 ("",[],[]) [Str "LaTeX",Space,Str "Block"]
|
2012-09-30 18:59:22 +02:00
|
|
|
,RawBlock "latex" "\\begin{tabular}{|l|l|}\\hline\nAnimal & Number \\\\ \\hline\nDog & 2 \\\\\nCat & 1 \\\\ \\hline\n\\end{tabular}"
|
2012-10-30 06:45:52 +01:00
|
|
|
,Header 1 ("",[],[]) [Str "Inline",Space,Str "Markup"]
|
2011-01-21 07:36:40 +01:00
|
|
|
,Para [Str "This",Space,Str "is",Space,Emph [Str "emphasized"],Str ".",Space,Str "This",Space,Str "is",Space,Strong [Str "strong"],Str "."]
|
2012-09-28 01:45:06 +02:00
|
|
|
,Para [Str "This",Space,Str "is",Space,Str "code:",Space,Code ("",[],[]) ">",Str ",",Space,Code ("",[],[]) "$",Str ",",Space,Code ("",[],[]) "\\",Str ",",Space,Code ("",[],[]) "\\$",Str ",",Space,Code ("",[],[]) "<html>",Str "."]
|
2011-01-21 07:36:40 +01:00
|
|
|
,Para [Str "This",Space,Str "is",Subscript [Str "subscripted"],Space,Str "and",Space,Str "this",Space,Str "is",Space,Superscript [Str "superscripted"],Str "."]
|
2012-10-30 06:45:52 +01:00
|
|
|
,Header 1 ("",[],[]) [Str "Special",Space,Str "Characters"]
|
2012-09-28 01:45:06 +02:00
|
|
|
,Para [Str "Here",Space,Str "is",Space,Str "some",Space,Str "unicode:"]
|
2011-01-21 07:36:40 +01:00
|
|
|
,BulletList
|
2012-09-28 01:45:06 +02:00
|
|
|
[[Plain [Str "I",Space,Str "hat:",Space,Str "\206"]]
|
|
|
|
,[Plain [Str "o",Space,Str "umlaut:",Space,Str "\246"]]
|
|
|
|
,[Plain [Str "section:",Space,Str "\167"]]
|
|
|
|
,[Plain [Str "set",Space,Str "membership:",Space,Str "\8712"]]
|
|
|
|
,[Plain [Str "copyright:",Space,Str "\169"]]]
|
|
|
|
,Para [Str "AT&T",Space,Str "has",Space,Str "an",Space,Str "ampersand",Space,Str "in",Space,Str "their",Space,Str "name."]
|
|
|
|
,Para [Str "This",Space,Str "&",Space,Str "that."]
|
|
|
|
,Para [Str "4",Space,Str "<",Space,Str "5."]
|
|
|
|
,Para [Str "6",Space,Str ">",Space,Str "5."]
|
|
|
|
,Para [Str "Backslash:",Space,Str "\\"]
|
|
|
|
,Para [Str "Backtick:",Space,Str "`"]
|
|
|
|
,Para [Str "Asterisk:",Space,Str "*"]
|
|
|
|
,Para [Str "Underscore:",Space,Str "_"]
|
|
|
|
,Para [Str "Left",Space,Str "brace:",Space,Str "{"]
|
|
|
|
,Para [Str "Right",Space,Str "brace:",Space,Str "}"]
|
|
|
|
,Para [Str "Left",Space,Str "bracket:",Space,Str "["]
|
|
|
|
,Para [Str "Right",Space,Str "bracket:",Space,Str "]"]
|
|
|
|
,Para [Str "Left",Space,Str "paren:",Space,Str "("]
|
|
|
|
,Para [Str "Right",Space,Str "paren:",Space,Str ")"]
|
|
|
|
,Para [Str "Greater-than:",Space,Str ">"]
|
|
|
|
,Para [Str "Hash:",Space,Str "#"]
|
|
|
|
,Para [Str "Period:",Space,Str "."]
|
|
|
|
,Para [Str "Bang:",Space,Str "!"]
|
|
|
|
,Para [Str "Plus:",Space,Str "+"]
|
|
|
|
,Para [Str "Minus:",Space,Str "-"]
|
2012-10-30 06:45:52 +01:00
|
|
|
,Header 1 ("",[],[]) [Str "Links"]
|
2012-09-28 01:45:06 +02:00
|
|
|
,Para [Str "Explicit:",Space,Str "a",Space,Link [Str "URL"] ("/url/",""),Str "."]
|
|
|
|
,Para [Str "Two",Space,Str "anonymous",Space,Str "links:",Space,Link [Str "the",Space,Str "first"] ("/url1/",""),Space,Str "and",Space,Link [Str "the",Space,Str "second"] ("/url2/","")]
|
|
|
|
,Para [Str "Reference",Space,Str "links:",Space,Link [Str "link1"] ("/url1/",""),Space,Str "and",Space,Link [Str "link2"] ("/url2/",""),Space,Str "and",Space,Link [Str "link1"] ("/url1/",""),Space,Str "again."]
|
|
|
|
,Para [Str "Here\8217s",Space,Str "a",Space,Link [Str "link",Space,Str "with",Space,Str "an",Space,Str "ampersand",Space,Str "in",Space,Str "the",Space,Str "URL"] ("http://example.com/?foo=1&bar=2",""),Str "."]
|
|
|
|
,Para [Str "Here\8217s",Space,Str "a",Space,Str "link",Space,Str "with",Space,Str "an",Space,Str "amersand",Space,Str "in",Space,Str "the",Space,Str "link",Space,Str "text:",Space,Link [Str "AT&T"] ("/url/",""),Str "."]
|
|
|
|
,Para [Str "Autolinks:",Space,Link [Str "http://example.com/?foo=1&bar=2"] ("http://example.com/?foo=1&bar=2",""),Space,Str "and",Space,Link [Str "nobody@nowhere.net"] ("mailto:nobody@nowhere.net",""),Str "."]
|
|
|
|
,Para [Str "But",Space,Str "not",Space,Str "here:"]
|
2011-01-21 07:36:40 +01:00
|
|
|
,CodeBlock ("",[],[]) "http://example.com/"
|
2012-10-30 06:45:52 +01:00
|
|
|
,Header 1 ("",[],[]) [Str "Images"]
|
2012-09-28 01:45:06 +02:00
|
|
|
,Para [Str "From",Space,Quoted DoubleQuote [Str "Voyage",Space,Str "dans",Space,Str "la",Space,Str "Lune"],Space,Str "by",Space,Str "Georges",Space,Str "Melies",Space,Str "(1902):"]
|
2012-09-27 07:22:14 +02:00
|
|
|
,Para [Image [Str "image"] ("lalune.jpg","")]
|
|
|
|
,Para [Image [Str "Voyage dans la Lune"] ("lalune.jpg","")]
|
2012-09-28 01:45:06 +02:00
|
|
|
,Para [Str "Here",Space,Str "is",Space,Str "a",Space,Str "movie",Space,Image [Str "movie"] ("movie.jpg",""),Space,Str "icon."]
|
2012-09-28 00:40:09 +02:00
|
|
|
,Para [Str "And",Space,Str "an",Space,Link [Image [Str "A movie"] ("movie.jpg","")] ("/url",""),Str "."]
|
2012-10-30 06:45:52 +01:00
|
|
|
,Header 1 ("",[],[]) [Str "Comments"]
|
2011-01-21 07:36:40 +01:00
|
|
|
,Para [Str "First",Space,Str "paragraph"]
|
|
|
|
,Para [Str "Another",Space,Str "paragraph"]
|
|
|
|
,Para [Str "A",Space,Str "third",Space,Str "paragraph"]
|
2012-10-30 06:45:52 +01:00
|
|
|
,Header 1 ("",[],[]) [Str "Line",Space,Str "blocks"]
|
2013-01-13 20:14:50 +01:00
|
|
|
,Para [Str "But",Space,Str "can",Space,Str "a",Space,Str "bee",Space,Str "be",Space,Str "said",Space,Str "to",Space,Str "be",LineBreak,Str "\160\160\160\160or",Space,Str "not",Space,Str "to",Space,Str "be",Space,Str "an",Space,Str "entire",Space,Str "bee,",LineBreak,Str "\160\160\160\160\160\160\160\160when",Space,Str "half",Space,Str "the",Space,Str "bee",Space,Str "is",Space,Str "not",Space,Str "a",Space,Str "bee,",LineBreak,Str "\160\160\160\160\160\160\160\160\160\160\160\160due",Space,Str "to",Space,Str "some",Space,Str "ancient",Space,Str "injury?"]
|
|
|
|
,Para [Str "Continuation",Space,Str "line",LineBreak,Str "\160\160and",Space,Str "another"]
|
2012-10-30 06:45:52 +01:00
|
|
|
,Header 1 ("",[],[]) [Str "Simple",Space,Str "Tables"]
|
2011-01-21 07:36:40 +01:00
|
|
|
,Table [] [AlignDefault,AlignDefault,AlignDefault] [0.0,0.0,0.0]
|
|
|
|
[[Plain [Str "col",Space,Str "1"]]
|
|
|
|
,[Plain [Str "col",Space,Str "2"]]
|
|
|
|
,[Plain [Str "col",Space,Str "3"]]]
|
|
|
|
[[[Plain [Str "r1",Space,Str "a"]]
|
|
|
|
,[Plain [Str "b"]]
|
|
|
|
,[Plain [Str "c"]]]
|
|
|
|
,[[Plain [Str "r2",Space,Str "d"]]
|
|
|
|
,[Plain [Str "e"]]
|
|
|
|
,[Plain [Str "f"]]]]
|
|
|
|
,Para [Str "Headless"]
|
|
|
|
,Table [] [AlignDefault,AlignDefault,AlignDefault] [0.0,0.0,0.0]
|
|
|
|
[[]
|
|
|
|
,[]
|
|
|
|
,[]]
|
|
|
|
[[[Plain [Str "r1",Space,Str "a"]]
|
|
|
|
,[Plain [Str "b"]]
|
|
|
|
,[Plain [Str "c"]]]
|
|
|
|
,[[Plain [Str "r2",Space,Str "d"]]
|
|
|
|
,[Plain [Str "e"]]
|
|
|
|
,[Plain [Str "f"]]]]
|
2012-10-30 06:45:52 +01:00
|
|
|
,Header 1 ("",[],[]) [Str "Grid",Space,Str "Tables"]
|
2011-01-21 07:36:40 +01:00
|
|
|
,Table [] [AlignDefault,AlignDefault,AlignDefault] [0.2375,0.15,0.1625]
|
|
|
|
[[Plain [Str "col",Space,Str "1"]]
|
|
|
|
,[Plain [Str "col",Space,Str "2"]]
|
|
|
|
,[Plain [Str "col",Space,Str "3"]]]
|
|
|
|
[[[Plain [Str "r1",Space,Str "a",Space,Str "r1",Space,Str "bis"]]
|
|
|
|
,[Plain [Str "b",Space,Str "b",Space,Str "2"]]
|
|
|
|
,[Plain [Str "c",Space,Str "c",Space,Str "2"]]]
|
|
|
|
,[[Plain [Str "r2",Space,Str "d"]]
|
|
|
|
,[Plain [Str "e"]]
|
|
|
|
,[Plain [Str "f"]]]]
|
|
|
|
,Para [Str "Headless"]
|
|
|
|
,Table [] [AlignDefault,AlignDefault,AlignDefault] [0.2375,0.15,0.1625]
|
|
|
|
[[]
|
|
|
|
,[]
|
|
|
|
,[]]
|
|
|
|
[[[Plain [Str "r1",Space,Str "a",Space,Str "r1",Space,Str "bis"]]
|
|
|
|
,[Plain [Str "b",Space,Str "b",Space,Str "2"]]
|
|
|
|
,[Plain [Str "c",Space,Str "c",Space,Str "2"]]]
|
|
|
|
,[[Plain [Str "r2",Space,Str "d"]]
|
|
|
|
,[Plain [Str "e"]]
|
|
|
|
,[Plain [Str "f"]]]]
|
|
|
|
,Para [Str "Spaces",Space,Str "at",Space,Str "ends",Space,Str "of",Space,Str "lines"]
|
|
|
|
,Table [] [AlignDefault,AlignDefault,AlignDefault] [0.2375,0.15,0.1625]
|
|
|
|
[[]
|
|
|
|
,[]
|
|
|
|
,[]]
|
|
|
|
[[[Plain [Str "r1",Space,Str "a",Space,Str "r1",Space,Str "bis"]]
|
|
|
|
,[Plain [Str "b",Space,Str "b",Space,Str "2"]]
|
|
|
|
,[Plain [Str "c",Space,Str "c",Space,Str "2"]]]
|
|
|
|
,[[Plain [Str "r2",Space,Str "d"]]
|
|
|
|
,[Plain [Str "e"]]
|
|
|
|
,[Plain [Str "f"]]]]
|
|
|
|
,Para [Str "Multiple",Space,Str "blocks",Space,Str "in",Space,Str "a",Space,Str "cell"]
|
|
|
|
,Table [] [AlignDefault,AlignDefault,AlignDefault] [0.2375,0.15,0.1625]
|
|
|
|
[[]
|
|
|
|
,[]
|
|
|
|
,[]]
|
|
|
|
[[[Para [Str "r1",Space,Str "a"]
|
|
|
|
,Para [Str "r1",Space,Str "bis"]]
|
|
|
|
,[BulletList
|
|
|
|
[[Plain [Str "b"]]
|
|
|
|
,[Plain [Str "b",Space,Str "2"]]
|
|
|
|
,[Plain [Str "b",Space,Str "2"]]]]
|
|
|
|
,[Plain [Str "c",Space,Str "c",Space,Str "2",Space,Str "c",Space,Str "2"]]]]
|
2012-10-30 06:45:52 +01:00
|
|
|
,Header 1 ("",[],[]) [Str "Footnotes"]
|
2012-09-28 01:45:06 +02:00
|
|
|
,Para [Note [Para [Str "Note",Space,Str "with",Space,Str "one",Space,Str "line."]]]
|
|
|
|
,Para [Note [Para [Str "Note",Space,Str "with",Space,Str "continuation",Space,Str "line."]]]
|
|
|
|
,Para [Note [Para [Str "Note",Space,Str "with"],Para [Str "continuation",Space,Str "block."]]]
|
|
|
|
,Para [Note [Para [Str "Note",Space,Str "with",Space,Str "continuation",Space,Str "line"],Para [Str "and",Space,Str "a",Space,Str "second",Space,Str "para."]]]
|
|
|
|
,Para [Str "Not",Space,Str "in",Space,Str "note."]
|
2012-10-30 06:45:52 +01:00
|
|
|
,Header 1 ("",[],[]) [Str "Math"]
|
2012-09-28 01:45:06 +02:00
|
|
|
,Para [Str "Some",Space,Str "inline",Space,Str "math",Space,Math InlineMath "E=mc^2",Str ".",Space,Str "Now",Space,Str "some",Space,Str "display",Space,Str "math:"]
|
2011-12-31 20:40:47 +01:00
|
|
|
,Para [Math DisplayMath "E=mc^2"]
|
|
|
|
,Para [Math DisplayMath "E = mc^2"]
|
|
|
|
,Para [Math DisplayMath "E = mc^2",Math DisplayMath "\\alpha = \\beta"]
|
|
|
|
,Para [Math DisplayMath "E &= mc^2\\\\\nF &= \\pi E",Math DisplayMath "F &= \\gamma \\alpha^2"]
|
2012-09-28 01:45:06 +02:00
|
|
|
,Para [Str "All",Space,Str "done."]
|
2012-10-30 06:45:52 +01:00
|
|
|
,Header 1 ("",[],[]) [Str "Default-Role"]
|
2012-09-28 01:45:06 +02:00
|
|
|
,Para [Str "Try",Space,Str "changing",Space,Str "the",Space,Str "default",Space,Str "role",Space,Str "to",Space,Str "a",Space,Str "few",Space,Str "different",Space,Str "things."]
|
2012-10-30 06:45:52 +01:00
|
|
|
,Header 2 ("",[],[]) [Str "Doesn\8217t",Space,Str "Break",Space,Str "Title",Space,Str "Parsing"]
|
2012-09-28 01:45:06 +02:00
|
|
|
,Para [Str "Inline",Space,Str "math:",Space,Math InlineMath "E=mc^2",Space,Str "or",Space,Math InlineMath "E=mc^2",Space,Str "or",Space,Math InlineMath "E=mc^2",Str ".",Space,Str "Other",Space,Str "roles:",Space,Superscript [Str "super"],Str ",",Space,Subscript [Str "sub"],Str "."]
|
2012-03-25 11:03:35 +02:00
|
|
|
,Para [Math DisplayMath "\\alpha = beta",Math DisplayMath "E = mc^2"]
|
2012-03-25 03:30:10 +02:00
|
|
|
,Para [Str "Some",Space,Superscript [Str "of"],Space,Str "these",Space,Superscript [Str "words"],Space,Str "are",Space,Str "in",Space,Superscript [Str "superscript"],Str "."]
|
2012-09-28 01:45:06 +02:00
|
|
|
,Para [Str "Reset",Space,Str "default-role",Space,Str "to",Space,Str "the",Space,Str "default",Space,Str "default."]
|
2012-10-01 05:28:50 +02:00
|
|
|
,Para [Str "And",Space,Str "now",Space,Str "some-invalid-string-3231231",Space,Str "is",Space,Str "nonsense."]
|
2012-10-30 06:45:52 +01:00
|
|
|
,Header 2 ("",[],[]) [Str "Literal",Space,Str "symbols"]
|
2012-09-28 01:45:06 +02:00
|
|
|
,Para [Str "2*2",Space,Str "=",Space,Str "4*1"]]
|