git.iko.soy/typeable/pandoc
on dc16f21 help sign in
typeable/pandoc/tests/markdown-reader-more.native
157 lines 9.5 kB history raw
1[Header 1 ("additional-markdown-reader-tests",[],[]) [Str "Additional",Space,Str "markdown",Space,Str "reader",Space,Str "tests"]
2,Header 2 ("blank-line-before-url-in-link-reference",[],[]) [Str "Blank",Space,Str "line",Space,Str "before",Space,Str "URL",Space,Str "in",Space,Str "link",Space,Str "reference"]
3,Para [Link [Str "foo"] ("/url",""),Space,Str "and",Space,Link [Str "bar"] ("/url","title")]
4,Header 2 ("raw-context-environments",[],[]) [Str "Raw",Space,Str "ConTeXt",Space,Str "environments"]
5,Plain [RawInline (Format "tex") "\\placeformula "]
6,RawBlock (Format "context") "\\startformula\n L_{1} = L_{2}\n \\stopformula"
7,RawBlock (Format "context") "\\start[a2]\n\\start[a2]\n\\stop[a2]\n\\stop[a2]"
8,Header 2 ("urls-with-spaces-and-punctuation",[],[]) [Str "URLs",Space,Str "with",Space,Str "spaces",Space,Str "and",Space,Str "punctuation"]
9,Para [Link [Str "foo"] ("/bar%20and%20baz",""),Space,Link [Str "foo"] ("/bar%20and%20baz",""),Space,Link [Str "foo"] ("/bar%20and%20baz",""),Space,Link [Str "foo"] ("bar%20baz","title")]
10,Para [Link [Str "baz"] ("/foo%20foo",""),Space,Link [Str "bam"] ("/foo%20fee",""),Space,Link [Str "bork"] ("/foo/zee%20zob","title")]
11,Para [Link [Str "Ward\8217s",Space,Str "method."] ("http://en.wikipedia.org/wiki/Ward's_method","")]
12,Header 2 ("horizontal-rules-with-spaces-at-end",[],[]) [Str "Horizontal",Space,Str "rules",Space,Str "with",Space,Str "spaces",Space,Str "at",Space,Str "end"]
13,HorizontalRule
14,HorizontalRule
15,Header 2 ("raw-html-before-header",[],[]) [Str "Raw",Space,Str "HTML",Space,Str "before",Space,Str "header"]
16,Para [RawInline (Format "html") "<a>",RawInline (Format "html") "</a>"]
17,Header 3 ("my-header",[],[]) [Str "my",Space,Str "header"]
18,Header 2 ("in-math",[],[]) [Str "$",Space,Str "in",Space,Str "math"]
19,Para [Math InlineMath "\\$2 + \\$3"]
20,Para [Math InlineMath "x = \\text{the $n$th root of $y$}"]
21,Para [Str "This",Space,Str "should",Space,Str "not",Space,Str "be",Space,Str "math:"]
22,Para [Str "$PATH",Space,Str "90",Space,Str "$PATH"]
23,Header 2 ("commented-out-list-item",[],[]) [Str "Commented-out",Space,Str "list",Space,Str "item"]
24,BulletList
25 [[Plain [Str "one",Space,RawInline (Format "html") "<!--\n- two\n-->"]]
26 ,[Plain [Str "three"]]]
27,Header 2 ("indented-code-at-beginning-of-list",[],[]) [Str "Indented",Space,Str "code",Space,Str "at",Space,Str "beginning",Space,Str "of",Space,Str "list"]
28,BulletList
29 [[CodeBlock ("",[],[]) "code\ncode"]]
30,OrderedList (1,Decimal,Period)
31 [[CodeBlock ("",[],[]) "code\ncode"]
32 ,[CodeBlock ("",[],[]) "code\ncode"]]
33,BulletList
34 [[CodeBlock ("",[],[]) "code\ncode"]
35 ,[Plain [Str "no",Space,Str "code"]]]
36,Header 2 ("backslash-newline",[],[]) [Str "Backslash",Space,Str "newline"]
37,Para [Str "hi",LineBreak,Str "there"]
38,Header 2 ("code-spans",[],[]) [Str "Code",Space,Str "spans"]
39,Para [Code ("",[],[]) "hi\\"]
40,Para [Code ("",[],[]) "hi there"]
41,Para [Code ("",[],[]) "hi````there"]
42,Para [Str "`hi"]
43,Para [Str "there`"]
44,Header 2 ("multilingual-urls",[],[]) [Str "Multilingual",Space,Str "URLs"]
45,Para [Link [Str "http://\27979.com?\27979=\27979"] ("http://\27979.com?\27979=\27979","")]
46,Para [Link [Str "foo"] ("/bar/\27979?x=\27979","title")]
47,Para [Link [Str "\27979@foo.\27979.baz"] ("mailto:\27979@foo.\27979.baz","")]
48,Header 2 ("numbered-examples",[],[]) [Str "Numbered",Space,Str "examples"]
49,OrderedList (1,Example,TwoParens)
50 [[Plain [Str "First",Space,Str "example."]]
51 ,[Plain [Str "Second",Space,Str "example."]]]
52,Para [Str "Explanation",Space,Str "of",Space,Str "examples",Space,Str "(2)",Space,Str "and",Space,Str "(3)."]
53,OrderedList (3,Example,TwoParens)
54 [[Plain [Str "Third",Space,Str "example."]]]
55,Header 2 ("macros",[],[]) [Str "Macros"]
56,Para [Math InlineMath "{\\langle x,y \\rangle}"]
57,Header 2 ("case-insensitive-references",[],[]) [Str "Case-insensitive",Space,Str "references"]
58,Para [Link [Str "Fum"] ("/fum","")]
59,Para [Link [Str "FUM"] ("/fum","")]
60,Para [Link [Str "bat"] ("/bat","")]
61,Header 2 ("curly-smart-quotes",[],[]) [Str "Curly",Space,Str "smart",Space,Str "quotes"]
62,Para [Quoted DoubleQuote [Str "Hi"]]
63,Para [Quoted SingleQuote [Str "Hi"]]
64,Header 2 ("consecutive-lists",[],[]) [Str "Consecutive",Space,Str "lists"]
65,BulletList
66 [[Plain [Str "one"]]
67 ,[Plain [Str "two"]]]
68,OrderedList (1,Decimal,Period)
69 [[Plain [Str "one"]]
70 ,[Plain [Str "two"]]]
71,OrderedList (1,LowerAlpha,Period)
72 [[Plain [Str "one"]]
73 ,[Plain [Str "two"]]]
74,Header 2 ("implicit-header-references",[],[]) [Str "Implicit",Space,Str "header",Space,Str "references"]
75,Header 3 ("my-header-1",[],[]) [Str "My",Space,Str "header"]
76,Header 3 ("my-other-header",[],[]) [Str "My",Space,Str "other",Space,Str "header"]
77,Para [Str "A",Space,Str "link",Space,Str "to",Space,Link [Str "My",Space,Str "header"] ("#my-header-1",""),Str "."]
78,Para [Str "Another",Space,Str "link",Space,Str "to",Space,Link [Str "it"] ("#my-header-1",""),Str "."]
79,Para [Str "Link",Space,Str "to",Space,Link [Str "Explicit",Space,Str "header",Space,Str "attributes"] ("#foobar",""),Str "."]
80,Para [Str "But",Space,Str "this",Space,Str "is",Space,Str "not",Space,Str "a",Space,Str "link",Space,Str "to",Space,Link [Str "My",Space,Str "other",Space,Str "header"] ("/foo",""),Str ",",Space,Str "since",Space,Str "the",Space,Str "reference",Space,Str "is",Space,Str "defined."]
81,Header 2 ("foobar",["baz"],[("key","val")]) [Str "Explicit",Space,Str "header",Space,Str "attributes"]
82,BlockQuote
83 [Header 2 ("foobar",["baz"],[("key","val")]) [Str "Header",Space,Str "attributes",Space,Str "inside",Space,Str "block",Space,Str "quote"]]
84,Header 2 ("line-blocks",[],[]) [Str "Line",Space,Str "blocks"]
85,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?"]
86,Para [Str "Continuation",Space,Str "line",LineBreak,Str "\160\160and",Space,Str "another"]
87,Header 2 ("grid-tables",[],[]) [Str "Grid",Space,Str "Tables"]
88,Table [] [AlignDefault,AlignDefault,AlignDefault] [0.2638888888888889,0.16666666666666666,0.18055555555555555]
89 [[Plain [Str "col",Space,Str "1"]]
90 ,[Plain [Str "col",Space,Str "2"]]
91 ,[Plain [Str "col",Space,Str "3"]]]
92 [[[Para [Str "r1",Space,Str "a",Space,Str "r1",Space,Str "bis"]]
93 ,[Para [Str "b",Space,Str "b",Space,Str "2"]]
94 ,[Para [Str "c",Space,Str "c",Space,Str "2"]]]
95 ,[[Para [Str "r2",Space,Str "d"]]
96 ,[Para [Str "e"]]
97 ,[Para [Str "f"]]]]
98,Para [Str "Headless"]
99,Table [] [AlignDefault,AlignDefault,AlignDefault] [0.2638888888888889,0.16666666666666666,0.18055555555555555]
100 [[]
101 ,[]
102 ,[]]
103 [[[Para [Str "r1",Space,Str "a",Space,Str "r1",Space,Str "bis"]]
104 ,[Para [Str "b",Space,Str "b",Space,Str "2"]]
105 ,[Para [Str "c",Space,Str "c",Space,Str "2"]]]
106 ,[[Para [Str "r2",Space,Str "d"]]
107 ,[Para [Str "e"]]
108 ,[Para [Str "f"]]]]
109,Para [Str "Spaces",Space,Str "at",Space,Str "ends",Space,Str "of",Space,Str "lines"]
110,Table [] [AlignDefault,AlignDefault,AlignDefault] [0.2638888888888889,0.16666666666666666,0.18055555555555555]
111 [[]
112 ,[]
113 ,[]]
114 [[[Para [Str "r1",Space,Str "a",Space,Str "r1",Space,Str "bis"]]
115 ,[Para [Str "b",Space,Str "b",Space,Str "2"]]
116 ,[Para [Str "c",Space,Str "c",Space,Str "2"]]]
117 ,[[Para [Str "r2",Space,Str "d"]]
118 ,[Para [Str "e"]]
119 ,[Para [Str "f"]]]]
120,Para [Str "Multiple",Space,Str "blocks",Space,Str "in",Space,Str "a",Space,Str "cell"]
121,Table [] [AlignDefault,AlignDefault,AlignDefault] [0.2638888888888889,0.16666666666666666,0.18055555555555555]
122 [[]
123 ,[]
124 ,[]]
125 [[[Header 1 ("col-1",[],[]) [Str "col",Space,Str "1"]
126 ,Para [Str "col",Space,Str "1"]]
127 ,[Header 1 ("col-2",[],[]) [Str "col",Space,Str "2"]
128 ,Para [Str "col",Space,Str "2"]]
129 ,[Header 1 ("col-3",[],[]) [Str "col",Space,Str "3"]
130 ,Para [Str "col",Space,Str "3"]]]
131 ,[[Para [Str "r1",Space,Str "a"]
132 ,Para [Str "r1",Space,Str "bis"]]
133 ,[BulletList
134 [[Plain [Str "b"]]
135 ,[Plain [Str "b",Space,Str "2"]]
136 ,[Plain [Str "b",Space,Str "2"]]]]
137 ,[Para [Str "c",Space,Str "c",Space,Str "2",Space,Str "c",Space,Str "2"]]]]
138,Para [Str "Empty",Space,Str "cells"]
139,Table [] [AlignDefault,AlignDefault] [5.555555555555555e-2,5.555555555555555e-2]
140 [[]
141 ,[]]
142 [[[]
143 ,[]]]
144,Header 2 ("entities-in-links-and-titles",[],[]) [Str "Entities",Space,Str "in",Space,Str "links",Space,Str "and",Space,Str "titles"]
145,Para [Link [Str "link"] ("/\252rl","\246\246!")]
146,Para [Link [Str "http://g\246\246gle.com"] ("http://g\246\246gle.com","")]
147,Para [Link [Str "me@ex\228mple.com"] ("mailto:me@ex\228mple.com","")]
148,Para [Link [Str "foobar"] ("/\252rl","\246\246!")]
149,Header 2 ("parentheses-in-urls",[],[]) [Str "Parentheses",Space,Str "in",Space,Str "URLs"]
150,Para [Link [Str "link"] ("/hi(there)","")]
151,Para [Link [Str "link"] ("/hithere)","")]
152,Para [Link [Str "linky"] ("hi_(there_(nested))","")]
153,Header 2 ("reference-link-fallbacks",[],[]) [Str "Reference",Space,Str "link",Space,Str "fallbacks"]
154,Para [Str "[",Emph [Str "not",Space,Str "a",Space,Str "link"],Str "]",Space,Str "[",Emph [Str "nope"],Str "]\8230"]
155,Header 2 ("empty-reference-links",[],[]) [Str "Empty",Space,Str "reference",Space,Str "links"]
156,Para [Str "bar"]
157,Para [Link [Str "foo2"] ("","")]]