git.iko.soy/typeable/pandoc
on master help sign in
Improved docbook reader tests.
commitf1869a05fde9a8487b2cae353bd36c8308d602af authorJohn MacFarlane <fiddlosopher@gmail.com> dateTue 8 May 2012, 21:44 (14 years ago) parentef5c7fb
2 files changed+40−553
tests/docbook-reader.docbook+2−405 tests/docbook-reader.native+38−148
tests/docbook-reader.docbook+2−405
@@ -29,6 +29,7 @@
2929 <sect5 id="level-5">
3030 <title>Level 5</title>
3131 <para>
32+ Hi.
3233 </para>
3334 </sect5>
3435 </sect4>
@@ -66,9 +67,6 @@
6667 <para>
6768 Here’s one with a bullet. * criminey.
6869 </para>
69− <para>
70− There should be a hard line break<literallayout></literallayout>here.
71− </para>
7270</sect1>
7371<sect1 id="block-quotes">
7472 <title>Block Quotes</title>
@@ -152,26 +150,6 @@ These should not be escaped: \$ \\ \&gt; \[ \{
152150 <title>Lists</title>
153151 <sect2 id="unordered">
154152 <title>Unordered</title>
155− <para>
156− Asterisks tight:
157− </para>
158− <itemizedlist>
159− <listitem>
160− <para>
161− asterisk 1
162− </para>
163− </listitem>
164− <listitem>
165− <para>
166− asterisk 2
167− </para>
168− </listitem>
169− <listitem>
170− <para>
171− asterisk 3
172− </para>
173− </listitem>
174− </itemizedlist>
175153 <para>
176154 Asterisks loose:
177155 </para>
@@ -192,26 +170,6 @@ These should not be escaped: \$ \\ \&gt; \[ \{
192170 </para>
193171 </listitem>
194172 </itemizedlist>
195− <para>
196− Pluses tight:
197− </para>
198− <itemizedlist>
199− <listitem>
200− <para>
201− Plus 1
202− </para>
203− </listitem>
204− <listitem>
205− <para>
206− Plus 2
207− </para>
208− </listitem>
209− <listitem>
210− <para>
211− Plus 3
212− </para>
213− </listitem>
214− </itemizedlist>
215173 <para>
216174 Pluses loose:
217175 </para>
@@ -232,26 +190,6 @@ These should not be escaped: \$ \\ \&gt; \[ \{
232190 </para>
233191 </listitem>
234192 </itemizedlist>
235− <para>
236− Minuses tight:
237− </para>
238− <itemizedlist>
239− <listitem>
240− <para>
241− Minus 1
242− </para>
243− </listitem>
244− <listitem>
245− <para>
246− Minus 2
247− </para>
248− </listitem>
249− <listitem>
250− <para>
251− Minus 3
252− </para>
253− </listitem>
254− </itemizedlist>
255193 <para>
256194 Minuses loose:
257195 </para>
@@ -275,49 +213,6 @@ These should not be escaped: \$ \\ \&gt; \[ \{
275213 </sect2>
276214 <sect2 id="ordered">
277215 <title>Ordered</title>
278− <para>
279− Tight:
280− </para>
281− <orderedlist numeration="arabic">
282− <listitem>
283− <para>
284− First
285− </para>
286− </listitem>
287− <listitem>
288− <para>
289− Second
290− </para>
291− </listitem>
292− <listitem>
293− <para>
294− Third
295− </para>
296− </listitem>
297− </orderedlist>
298− <para>
299− and:
300− </para>
301− <orderedlist numeration="arabic">
302− <listitem>
303− <para>
304− One
305− </para>
306− </listitem>
307− <listitem>
308− <para>
309− Two
310− </para>
311− </listitem>
312− <listitem>
313− <para>
314− Three
315− </para>
316− </listitem>
317− </orderedlist>
318− <para>
319− Loose using tabs:
320− </para>
321216 <orderedlist numeration="arabic">
322217 <listitem>
323218 <para>
@@ -612,79 +507,6 @@ These should not be escaped: \$ \\ \&gt; \[ \{
612507</sect1>
613508<sect1 id="definition-lists">
614509 <title>Definition Lists</title>
615− <para>
616− Tight using spaces:
617− </para>
618− <variablelist>
619− <varlistentry>
620− <term>
621− apple
622− </term>
623− <listitem>
624− <para>
625− red fruit
626− </para>
627− </listitem>
628− </varlistentry>
629− <varlistentry>
630− <term>
631− orange
632− </term>
633− <listitem>
634− <para>
635− orange fruit
636− </para>
637− </listitem>
638− </varlistentry>
639− <varlistentry>
640− <term>
641− banana
642− </term>
643− <listitem>
644− <para>
645− yellow fruit
646− </para>
647− </listitem>
648− </varlistentry>
649− </variablelist>
650− <para>
651− Tight using tabs:
652− </para>
653− <variablelist>
654− <varlistentry>
655− <term>
656− apple
657− </term>
658− <listitem>
659− <para>
660− red fruit
661− </para>
662− </listitem>
663− </varlistentry>
664− <varlistentry>
665− <term>
666− orange
667− </term>
668− <listitem>
669− <para>
670− orange fruit
671− </para>
672− </listitem>
673− </varlistentry>
674− <varlistentry>
675− <term>
676− banana
677− </term>
678− <listitem>
679− <para>
680− yellow fruit
681− </para>
682− </listitem>
683− </varlistentry>
684− </variablelist>
685− <para>
686− Loose:
687− </para>
688510 <variablelist>
689511 <varlistentry>
690512 <term>
@@ -754,7 +576,7 @@ These should not be escaped: \$ \\ \&gt; \[ \{
754576 </varlistentry>
755577 </variablelist>
756578 <para>
757− Multiple definitions, tight:
579+ Multiple definitions, loose:
758580 </para>
759581 <variablelist>
760582 <varlistentry>
@@ -765,37 +587,8 @@ These should not be escaped: \$ \\ \&gt; \[ \{
765587 <para>
766588 red fruit
767589 </para>
768− <para>
769− computer
770− </para>
771590 </listitem>
772− </varlistentry>
773− <varlistentry>
774− <term>
775− orange
776− </term>
777− <listitem>
778− <para>
779− orange fruit
780− </para>
781− <para>
782− bank
783− </para>
784− </listitem>
785− </varlistentry>
786− </variablelist>
787− <para>
788− Multiple definitions, loose:
789− </para>
790− <variablelist>
791− <varlistentry>
792− <term>
793− apple
794− </term>
795591 <listitem>
796− <para>
797− red fruit
798− </para>
799592 <para>
800593 computer
801594 </para>
@@ -856,126 +649,6 @@ These should not be escaped: \$ \\ \&gt; \[ \{
856649 </varlistentry>
857650 </variablelist>
858651</sect1>
859−<sect1 id="html-blocks">
860− <title>HTML Blocks</title>
861− <para>
862− Simple block on one line:
863− </para>
864− <div>
865− foo
866− </div>
867− <para>
868− And nested without indentation:
869− </para>
870− <div>
871− <div>
872− <div>
873− foo
874− </div>
875− </div>
876− <div>
877− bar
878− </div>
879− </div>
880− <para>
881− Interpreted markdown in a table:
882− </para>
883− <table>
884− <tr>
885− <td>
886− This is <emphasis>emphasized</emphasis>
887− </td>
888− <td>
889− And this is <emphasis role="strong">strong</emphasis>
890− </td>
891− </tr>
892− </table>
893−
894− <script type="text/javascript">document.write('This *should not* be interpreted as markdown');</script>
895− <para>
896− Here’s a simple block:
897− </para>
898− <div>
899−
900− foo
901− </div>
902− <para>
903− This should be a code block, though:
904− </para>
905− <programlisting>
906−&lt;div&gt;
907− foo
908−&lt;/div&gt;
909−</programlisting>
910− <para>
911− As should this:
912− </para>
913− <programlisting>
914−&lt;div&gt;foo&lt;/div&gt;
915−</programlisting>
916− <para>
917− Now, nested:
918− </para>
919− <div>
920− <div>
921− <div>
922−
923− foo
924− </div>
925− </div>
926− </div>
927− <para>
928− This should just be an HTML comment:
929− </para>
930− <!-- Comment -->
931− <para>
932− Multiline:
933− </para>
934− <!--
935− Blah
936− Blah
937− -->
938−
939− <!--
940− This is another comment.
941− -->
942− <para>
943− Code block:
944− </para>
945− <programlisting>
946−&lt;!-- Comment --&gt;
947−</programlisting>
948− <para>
949− Just plain comment, with trailing spaces on the line:
950− </para>
951− <!-- foo -->
952− <para>
953− Code:
954− </para>
955− <programlisting>
956−&lt;hr /&gt;
957−</programlisting>
958− <para>
959− Hr’s:
960− </para>
961− <hr>
962−
963− <hr />
964−
965− <hr />
966−
967− <hr>
968−
969− <hr />
970−
971− <hr />
972−
973− <hr class="foo" id="bar" />
974−
975− <hr class="foo" id="bar" />
976−
977− <hr class="foo" id="bar">
978−</sect1>
979652<sect1 id="inline-markup">
980653 <title>Inline Markup</title>
981654 <para>
@@ -1058,82 +731,6 @@ These should not be escaped: \$ \\ \&gt; \[ \{
1058731 Ellipses…and…and….
1059732 </para>
1060733</sect1>
1061−<sect1 id="latex">
1062− <title>LaTeX</title>
1063− <itemizedlist>
1064− <listitem>
1065− <para>
1066− </para>
1067− </listitem>
1068− <listitem>
1069− <para>
1070− 2 + 2 = 4
1071− </para>
1072− </listitem>
1073− <listitem>
1074− <para>
1075− <emphasis>x</emphasis> ∈ <emphasis>y</emphasis>
1076− </para>
1077− </listitem>
1078− <listitem>
1079− <para>
1080− <emphasis>α</emphasis> ∧ <emphasis>ω</emphasis>
1081− </para>
1082− </listitem>
1083− <listitem>
1084− <para>
1085− 223
1086− </para>
1087− </listitem>
1088− <listitem>
1089− <para>
1090− <emphasis>p</emphasis>-Tree
1091− </para>
1092− </listitem>
1093− <listitem>
1094− <para>
1095− Here’s some display math:
1096− $\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}$
1097− </para>
1098− </listitem>
1099− <listitem>
1100− <para>
1101− Here’s one that has a line break in it:
1102− <emphasis>α</emphasis> + <emphasis>ω</emphasis> × <emphasis>x</emphasis><superscript>2</superscript>.
1103− </para>
1104− </listitem>
1105− </itemizedlist>
1106− <para>
1107− These shouldn’t be math:
1108− </para>
1109− <itemizedlist>
1110− <listitem>
1111− <para>
1112− To get the famous equation, write <literal>$e = mc^2$</literal>.
1113− </para>
1114− </listitem>
1115− <listitem>
1116− <para>
1117− $22,000 is a <emphasis>lot</emphasis> of money. So is $34,000. (It
1118− worked if <quote>lot</quote> is emphasized.)
1119− </para>
1120− </listitem>
1121− <listitem>
1122− <para>
1123− Shoes ($20) and socks ($5).
1124− </para>
1125− </listitem>
1126− <listitem>
1127− <para>
1128− Escaped <literal>$</literal>: $73 <emphasis>this should be
1129− emphasized</emphasis> 23$.
1130− </para>
1131− </listitem>
1132− </itemizedlist>
1133− <para>
1134− Here’s a LaTeX table:
1135− </para>
1136−</sect1>
1137734<sect1 id="special-characters">
1138735 <title>Special Characters</title>
1139736 <para>
tests/docbook-reader.native+38−148
@@ -5,6 +5,7 @@ Pandoc (Meta {docTitle = [Str "Pandoc",Space,Str "Test",Space,Str "Suite"], docA
55,Header 3 [Str "Level",Space,Str "3",Space,Str "with",Space,Emph [Str "emphasis"]]
66,Header 4 [Str "Level",Space,Str "4"]
77,Header 5 [Str "Level",Space,Str "5"]
8+,Para [Str "Hi."]
89,Header 1 [Str "Level",Space,Str "1"]
910,Header 2 [Str "Level",Space,Str "2",Space,Str "with",Space,Emph [Str "emphasis"]]
1011,Header 3 [Str "Level",Space,Str "3"]
@@ -15,7 +16,6 @@ Pandoc (Meta {docTitle = [Str "Pandoc",Space,Str "Test",Space,Str "Suite"], docA
1516,Para [Str "Here\8217s",Space,Str "a",Space,Str "regular",Space,Str "paragraph."]
1617,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."]
1718,Para [Str "Here\8217s",Space,Str "one",Space,Str "with",Space,Str "a",Space,Str "bullet.",Space,Str "*",Space,Str "criminey."]
18−,Para [Str "There",Space,Str "should",Space,Str "be",Space,Str "a",Space,Str "hard",Space,Str "line",Space,Str "break",LineBreak,Str "here."]
1919,Header 1 [Str "Block",Space,Str "Quotes"]
2020,Para [Str "E-mail",Space,Str "style:"]
2121,BlockQuote
@@ -25,8 +25,8 @@ Pandoc (Meta {docTitle = [Str "Pandoc",Space,Str "Test",Space,Str "Suite"], docA
2525 ,CodeBlock ("",[],[]) "sub status {\n print \"working\";\n}"
2626 ,Para [Str "A",Space,Str "list:"]
2727 ,OrderedList (1,Decimal,Period)
28− [[Plain [Str "item",Space,Str "one"]]
29− ,[Plain [Str "item",Space,Str "two"]]]
28+ [[Para [Str "item",Space,Str "one"]]
29+ ,[Para [Str "item",Space,Str "two"]]]
3030 ,Para [Str "Nested",Space,Str "block",Space,Str "quotes:"]
3131 ,BlockQuote
3232 [Para [Str "nested"]]
@@ -41,48 +41,22 @@ Pandoc (Meta {docTitle = [Str "Pandoc",Space,Str "Test",Space,Str "Suite"], docA
4141,CodeBlock ("",[],[]) " this code block is indented by two tabs\n\nThese should not be escaped: \\$ \\\\ \\> \\[ \\{"
4242,Header 1 [Str "Lists"]
4343,Header 2 [Str "Unordered"]
44−,Para [Str "Asterisks",Space,Str "tight:"]
45−,BulletList
46− [[Plain [Str "asterisk",Space,Str "1"]]
47− ,[Plain [Str "asterisk",Space,Str "2"]]
48− ,[Plain [Str "asterisk",Space,Str "3"]]]
4944,Para [Str "Asterisks",Space,Str "loose:"]
5045,BulletList
5146 [[Para [Str "asterisk",Space,Str "1"]]
5247 ,[Para [Str "asterisk",Space,Str "2"]]
5348 ,[Para [Str "asterisk",Space,Str "3"]]]
54−,Para [Str "Pluses",Space,Str "tight:"]
55−,BulletList
56− [[Plain [Str "Plus",Space,Str "1"]]
57− ,[Plain [Str "Plus",Space,Str "2"]]
58− ,[Plain [Str "Plus",Space,Str "3"]]]
5949,Para [Str "Pluses",Space,Str "loose:"]
6050,BulletList
6151 [[Para [Str "Plus",Space,Str "1"]]
6252 ,[Para [Str "Plus",Space,Str "2"]]
6353 ,[Para [Str "Plus",Space,Str "3"]]]
64−,Para [Str "Minuses",Space,Str "tight:"]
65−,BulletList
66− [[Plain [Str "Minus",Space,Str "1"]]
67− ,[Plain [Str "Minus",Space,Str "2"]]
68− ,[Plain [Str "Minus",Space,Str "3"]]]
6954,Para [Str "Minuses",Space,Str "loose:"]
7055,BulletList
7156 [[Para [Str "Minus",Space,Str "1"]]
7257 ,[Para [Str "Minus",Space,Str "2"]]
7358 ,[Para [Str "Minus",Space,Str "3"]]]
7459,Header 2 [Str "Ordered"]
75−,Para [Str "Tight:"]
76−,OrderedList (1,Decimal,Period)
77− [[Plain [Str "First"]]
78− ,[Plain [Str "Second"]]
79− ,[Plain [Str "Third"]]]
80−,Para [Str "and:"]
81−,OrderedList (1,Decimal,Period)
82− [[Plain [Str "One"]]
83− ,[Plain [Str "Two"]]
84− ,[Plain [Str "Three"]]]
85−,Para [Str "Loose",Space,Str "using",Space,Str "tabs:"]
8660,OrderedList (1,Decimal,Period)
8761 [[Para [Str "First"]]
8862 ,[Para [Str "Second"]]
@@ -100,28 +74,28 @@ Pandoc (Meta {docTitle = [Str "Pandoc",Space,Str "Test",Space,Str "Suite"], docA
10074 ,[Para [Str "Item",Space,Str "3."]]]
10175,Header 2 [Str "Nested"]
10276,BulletList
103− [[Plain [Str "Tab"]
77+ [[Para [Str "Tab"]
10478 ,BulletList
105− [[Plain [Str "Tab"]
79+ [[Para [Str "Tab"]
10680 ,BulletList
107− [[Plain [Str "Tab"]]]]]]]
81+ [[Para [Str "Tab"]]]]]]]
10882,Para [Str "Here\8217s",Space,Str "another:"]
10983,OrderedList (1,Decimal,Period)
110− [[Plain [Str "First"]]
111− ,[Plain [Str "Second:"]
84+ [[Para [Str "First"]]
85+ ,[Para [Str "Second:"]
11286 ,BulletList
113− [[Plain [Str "Fee"]]
114− ,[Plain [Str "Fie"]]
115− ,[Plain [Str "Foe"]]]]
116− ,[Plain [Str "Third"]]]
87+ [[Para [Str "Fee"]]
88+ ,[Para [Str "Fie"]]
89+ ,[Para [Str "Foe"]]]]
90+ ,[Para [Str "Third"]]]
11791,Para [Str "Same",Space,Str "thing",Space,Str "but",Space,Str "with",Space,Str "paragraphs:"]
11892,OrderedList (1,Decimal,Period)
11993 [[Para [Str "First"]]
12094 ,[Para [Str "Second:"]
12195 ,BulletList
122− [[Plain [Str "Fee"]]
123− ,[Plain [Str "Fie"]]
124− ,[Plain [Str "Foe"]]]]
96+ [[Para [Str "Fee"]]
97+ ,[Para [Str "Fie"]]
98+ ,[Para [Str "Foe"]]]]
12599 ,[Para [Str "Third"]]]
126100,Header 2 [Str "Tabs",Space,Str "and",Space,Str "spaces"]
127101,BulletList
@@ -132,51 +106,34 @@ Pandoc (Meta {docTitle = [Str "Pandoc",Space,Str "Test",Space,Str "Suite"], docA
132106 ,[Para [Str "this",Space,Str "is",Space,Str "an",Space,Str "example",Space,Str "list",Space,Str "item",Space,Str "indented",Space,Str "with",Space,Str "spaces"]]]]]
133107,Header 2 [Str "Fancy",Space,Str "list",Space,Str "markers"]
134108,OrderedList (2,Decimal,TwoParens)
135− [[Plain [Str "begins",Space,Str "with",Space,Str "2"]]
109+ [[Para [Str "begins",Space,Str "with",Space,Str "2"]]
136110 ,[Para [Str "and",Space,Str "now",Space,Str "3"]
137111 ,Para [Str "with",Space,Str "a",Space,Str "continuation"]
138112 ,OrderedList (4,LowerRoman,Period)
139− [[Plain [Str "sublist",Space,Str "with",Space,Str "roman",Space,Str "numerals,",Space,Str "starting",Space,Str "with",Space,Str "4"]]
140− ,[Plain [Str "more",Space,Str "items"]
113+ [[Para [Str "sublist",Space,Str "with",Space,Str "roman",Space,Str "numerals,",Space,Str "starting",Space,Str "with",Space,Str "4"]]
114+ ,[Para [Str "more",Space,Str "items"]
141115 ,OrderedList (1,UpperAlpha,TwoParens)
142− [[Plain [Str "a",Space,Str "subsublist"]]
143− ,[Plain [Str "a",Space,Str "subsublist"]]]]]]]
116+ [[Para [Str "a",Space,Str "subsublist"]]
117+ ,[Para [Str "a",Space,Str "subsublist"]]]]]]]
144118,Para [Str "Nesting:"]
145119,OrderedList (1,UpperAlpha,Period)
146− [[Plain [Str "Upper",Space,Str "Alpha"]
120+ [[Para [Str "Upper",Space,Str "Alpha"]
147121 ,OrderedList (1,UpperRoman,Period)
148− [[Plain [Str "Upper",Space,Str "Roman."]
122+ [[Para [Str "Upper",Space,Str "Roman."]
149123 ,OrderedList (6,Decimal,TwoParens)
150− [[Plain [Str "Decimal",Space,Str "start",Space,Str "with",Space,Str "6"]
124+ [[Para [Str "Decimal",Space,Str "start",Space,Str "with",Space,Str "6"]
151125 ,OrderedList (3,LowerAlpha,OneParen)
152− [[Plain [Str "Lower",Space,Str "alpha",Space,Str "with",Space,Str "paren"]]]]]]]]]
126+ [[Para [Str "Lower",Space,Str "alpha",Space,Str "with",Space,Str "paren"]]]]]]]]]
153127,Para [Str "Autonumbering:"]
154128,OrderedList (1,DefaultStyle,DefaultDelim)
155− [[Plain [Str "Autonumber."]]
156− ,[Plain [Str "More."]
129+ [[Para [Str "Autonumber."]]
130+ ,[Para [Str "More."]
157131 ,OrderedList (1,DefaultStyle,DefaultDelim)
158− [[Plain [Str "Nested."]]]]]
132+ [[Para [Str "Nested."]]]]]
159133,Para [Str "Should",Space,Str "not",Space,Str "be",Space,Str "a",Space,Str "list",Space,Str "item:"]
160134,Para [Str "M.A.\160\&2007"]
161135,Para [Str "B.",Space,Str "Williams"]
162136,Header 1 [Str "Definition",Space,Str "Lists"]
163−,Para [Str "Tight",Space,Str "using",Space,Str "spaces:"]
164−,DefinitionList
165− [([Str "apple"],
166− [[Plain [Str "red",Space,Str "fruit"]]])
167− ,([Str "orange"],
168− [[Plain [Str "orange",Space,Str "fruit"]]])
169− ,([Str "banana"],
170− [[Plain [Str "yellow",Space,Str "fruit"]]])]
171−,Para [Str "Tight",Space,Str "using",Space,Str "tabs:"]
172−,DefinitionList
173− [([Str "apple"],
174− [[Plain [Str "red",Space,Str "fruit"]]])
175− ,([Str "orange"],
176− [[Plain [Str "orange",Space,Str "fruit"]]])
177− ,([Str "banana"],
178− [[Plain [Str "yellow",Space,Str "fruit"]]])]
179−,Para [Str "Loose:"]
180137,DefinitionList
181138 [([Str "apple"],
182139 [[Para [Str "red",Space,Str "fruit"]]])
@@ -194,14 +151,6 @@ Pandoc (Meta {docTitle = [Str "Pandoc",Space,Str "Test",Space,Str "Suite"], docA
194151 ,CodeBlock ("",[],[]) "{ orange code block }"
195152 ,BlockQuote
196153 [Para [Str "orange",Space,Str "block",Space,Str "quote"]]]])]
197−,Para [Str "Multiple",Space,Str "definitions,",Space,Str "tight:"]
198−,DefinitionList
199− [([Str "apple"],
200− [[Plain [Str "red",Space,Str "fruit"]]
201− ,[Plain [Str "computer"]]])
202− ,([Str "orange"],
203− [[Plain [Str "orange",Space,Str "fruit"]]
204− ,[Plain [Str "bank"]]])]
205154,Para [Str "Multiple",Space,Str "definitions,",Space,Str "loose:"]
206155,DefinitionList
207156 [([Str "apple"],
@@ -218,49 +167,8 @@ Pandoc (Meta {docTitle = [Str "Pandoc",Space,Str "Test",Space,Str "Suite"], docA
218167 ,([Str "orange"],
219168 [[Para [Str "orange",Space,Str "fruit"]
220169 ,OrderedList (1,Decimal,Period)
221− [[Plain [Str "sublist"]]
222− ,[Plain [Str "sublist"]]]]])]
223−,Header 1 [Str "HTML",Space,Str "Blocks"]
224−,Para [Str "Simple",Space,Str "block",Space,Str "on",Space,Str "one",Space,Str "line:"]
225−,RawBlock "html" "<div>"
226−,Plain [Str "foo"]
227−,RawBlock "html" "</div>\n"
228−,Para [Str "And",Space,Str "nested",Space,Str "without",Space,Str "indentation:"]
229−,RawBlock "html" "<div>\n<div>\n<div>"
230−,Plain [Str "foo"]
231−,RawBlock "html" "</div>\n</div>\n<div>"
232−,Plain [Str "bar"]
233−,RawBlock "html" "</div>\n</div>\n"
234−,Para [Str "Interpreted",Space,Str "markdown",Space,Str "in",Space,Str "a",Space,Str "table:"]
235−,RawBlock "html" "<table>\n<tr>\n<td>"
236−,Plain [Str "This",Space,Str "is",Space,Emph [Str "emphasized"]]
237−,RawBlock "html" "</td>\n<td>"
238−,Plain [Str "And",Space,Str "this",Space,Str "is",Space,Strong [Str "strong"]]
239−,RawBlock "html" "</td>\n</tr>\n</table>\n\n<script type=\"text/javascript\">document.write('This *should not* be interpreted as markdown');</script>\n"
240−,Para [Str "Here\8217s",Space,Str "a",Space,Str "simple",Space,Str "block:"]
241−,RawBlock "html" "<div>\n "
242−,Plain [Str "foo"]
243−,RawBlock "html" "</div>\n"
244−,Para [Str "This",Space,Str "should",Space,Str "be",Space,Str "a",Space,Str "code",Space,Str "block,",Space,Str "though:"]
245−,CodeBlock ("",[],[]) "<div>\n foo\n</div>"
246−,Para [Str "As",Space,Str "should",Space,Str "this:"]
247−,CodeBlock ("",[],[]) "<div>foo</div>"
248−,Para [Str "Now,",Space,Str "nested:"]
249−,RawBlock "html" "<div>\n <div>\n <div>\n "
250−,Plain [Str "foo"]
251−,RawBlock "html" "</div>\n </div>\n</div>\n"
252−,Para [Str "This",Space,Str "should",Space,Str "just",Space,Str "be",Space,Str "an",Space,Str "HTML",Space,Str "comment:"]
253−,RawBlock "html" "<!-- Comment -->\n"
254−,Para [Str "Multiline:"]
255−,RawBlock "html" "<!--\nBlah\nBlah\n-->\n\n<!--\n This is another comment.\n-->\n"
256−,Para [Str "Code",Space,Str "block:"]
257−,CodeBlock ("",[],[]) "<!-- Comment -->"
258−,Para [Str "Just",Space,Str "plain",Space,Str "comment,",Space,Str "with",Space,Str "trailing",Space,Str "spaces",Space,Str "on",Space,Str "the",Space,Str "line:"]
259−,RawBlock "html" "<!-- foo --> \n"
260−,Para [Str "Code:"]
261−,CodeBlock ("",[],[]) "<hr />"
262−,Para [Str "Hr\8217s:"]
263−,RawBlock "html" "<hr>\n\n<hr />\n\n<hr />\n\n<hr> \n\n<hr /> \n\n<hr /> \n\n<hr class=\"foo\" id=\"bar\" />\n\n<hr class=\"foo\" id=\"bar\" />\n\n<hr class=\"foo\" id=\"bar\">\n"
170+ [[Para [Str "sublist"]]
171+ ,[Para [Str "sublist"]]]]])]
264172,Header 1 [Str "Inline",Space,Str "Markup"]
265173,Para [Str "This",Space,Str "is",Space,Emph [Str "emphasized"],Str ",",Space,Str "and",Space,Str "so",Space,Emph [Str "is",Space,Str "this"],Str "."]
266174,Para [Str "This",Space,Str "is",Space,Strong [Str "strong"],Str ",",Space,Str "and",Space,Str "so",Space,Strong [Str "is",Space,Str "this"],Str "."]
@@ -283,32 +191,14 @@ Pandoc (Meta {docTitle = [Str "Pandoc",Space,Str "Test",Space,Str "Suite"], docA
283191,Para [Str "Some",Space,Str "dashes:",Space,Str "one\8212two",Space,Str "\8212",Space,Str "three\8212four",Space,Str "\8212",Space,Str "five."]
284192,Para [Str "Dashes",Space,Str "between",Space,Str "numbers:",Space,Str "5\8211\&7,",Space,Str "255\8211\&66,",Space,Str "1987\8211\&1999."]
285193,Para [Str "Ellipses\8230and\8230and\8230."]
286−,Header 1 [Str "LaTeX"]
287−,BulletList
288− [[Plain [RawInline "tex" "\\cite[22-23]{smith.1899}"]]
289− ,[Plain [Math InlineMath "2+2=4"]]
290− ,[Plain [Math InlineMath "x \\in y"]]
291− ,[Plain [Math InlineMath "\\alpha \\wedge \\omega"]]
292− ,[Plain [Math InlineMath "223"]]
293− ,[Plain [Math InlineMath "p",Str "-Tree"]]
294− ,[Plain [Str "Here\8217s",Space,Str "some",Space,Str "display",Space,Str "math:",Space,Math DisplayMath "\\frac{d}{dx}f(x)=\\lim_{h\\to 0}\\frac{f(x+h)-f(x)}{h}"]]
295− ,[Plain [Str "Here\8217s",Space,Str "one",Space,Str "that",Space,Str "has",Space,Str "a",Space,Str "line",Space,Str "break",Space,Str "in",Space,Str "it:",Space,Math InlineMath "\\alpha + \\omega \\times x^2",Str "."]]]
296−,Para [Str "These",Space,Str "shouldn\8217t",Space,Str "be",Space,Str "math:"]
297−,BulletList
298− [[Plain [Str "To",Space,Str "get",Space,Str "the",Space,Str "famous",Space,Str "equation,",Space,Str "write",Space,Code ("",[],[]) "$e = mc^2$",Str "."]]
299− ,[Plain [Str "$22,000",Space,Str "is",Space,Str "a",Space,Emph [Str "lot"],Space,Str "of",Space,Str "money.",Space,Str "So",Space,Str "is",Space,Str "$34,000.",Space,Str "(It",Space,Str "worked",Space,Str "if",Space,Quoted DoubleQuote [Str "lot"],Space,Str "is",Space,Str "emphasized.)"]]
300− ,[Plain [Str "Shoes",Space,Str "($20)",Space,Str "and",Space,Str "socks",Space,Str "($5)."]]
301− ,[Plain [Str "Escaped",Space,Code ("",[],[]) "$",Str ":",Space,Str "$73",Space,Emph [Str "this",Space,Str "should",Space,Str "be",Space,Str "emphasized"],Space,Str "23$."]]]
302−,Para [Str "Here\8217s",Space,Str "a",Space,Str "LaTeX",Space,Str "table:"]
303−,RawBlock "latex" "\\begin{tabular}{|l|l|}\\hline\nAnimal & Number \\\\ \\hline\nDog & 2 \\\\\nCat & 1 \\\\ \\hline\n\\end{tabular}"
304194,Header 1 [Str "Special",Space,Str "Characters"]
305195,Para [Str "Here",Space,Str "is",Space,Str "some",Space,Str "unicode:"]
306196,BulletList
307− [[Plain [Str "I",Space,Str "hat:",Space,Str "\206"]]
308− ,[Plain [Str "o",Space,Str "umlaut:",Space,Str "\246"]]
309− ,[Plain [Str "section:",Space,Str "\167"]]
310− ,[Plain [Str "set",Space,Str "membership:",Space,Str "\8712"]]
311− ,[Plain [Str "copyright:",Space,Str "\169"]]]
197+ [[Para [Str "I",Space,Str "hat:",Space,Str "\206"]]
198+ ,[Para [Str "o",Space,Str "umlaut:",Space,Str "\246"]]
199+ ,[Para [Str "section:",Space,Str "\167"]]
200+ ,[Para [Str "set",Space,Str "membership:",Space,Str "\8712"]]
201+ ,[Para [Str "copyright:",Space,Str "\169"]]]
312202,Para [Str "AT&T",Space,Str "has",Space,Str "an",Space,Str "ampersand",Space,Str "in",Space,Str "their",Space,Str "name."]
313203,Para [Str "AT&T",Space,Str "is",Space,Str "another",Space,Str "way",Space,Str "to",Space,Str "write",Space,Str "it."]
314204,Para [Str "This",Space,Str "&",Space,Str "that."]
@@ -362,9 +252,9 @@ Pandoc (Meta {docTitle = [Str "Pandoc",Space,Str "Test",Space,Str "Suite"], docA
362252,Header 2 [Str "Autolinks"]
363253,Para [Str "With",Space,Str "an",Space,Str "ampersand:",Space,Link [Code ("",["url"],[]) "http://example.com/?foo=1&bar=2"] ("http://example.com/?foo=1&bar=2","")]
364254,BulletList
365− [[Plain [Str "In",Space,Str "a",Space,Str "list?"]]
366− ,[Plain [Link [Code ("",["url"],[]) "http://example.com/"] ("http://example.com/","")]]
367− ,[Plain [Str "It",Space,Str "should."]]]
255+ [[Para [Str "In",Space,Str "a",Space,Str "list?"]]
256+ ,[Para [Link [Code ("",["url"],[]) "http://example.com/"] ("http://example.com/","")]]
257+ ,[Para [Str "It",Space,Str "should."]]]
368258,Para [Str "An",Space,Str "e-mail",Space,Str "address:",Space,Link [Code ("",["url"],[]) "nobody@nowhere.net"] ("mailto:nobody@nowhere.net","")]
369259,BlockQuote
370260 [Para [Str "Blockquoted:",Space,Link [Code ("",["url"],[]) "http://example.com/"] ("http://example.com/","")]]
@@ -379,7 +269,7 @@ Pandoc (Meta {docTitle = [Str "Pandoc",Space,Str "Test",Space,Str "Suite"], docA
379269,BlockQuote
380270 [Para [Str "Notes",Space,Str "can",Space,Str "go",Space,Str "in",Space,Str "quotes.",Note [Para [Str "In",Space,Str "quote."]]]]
381271,OrderedList (1,Decimal,Period)
382− [[Plain [Str "And",Space,Str "in",Space,Str "list",Space,Str "items.",Note [Para [Str "In",Space,Str "list."]]]]]
272+ [[Para [Str "And",Space,Str "in",Space,Str "list",Space,Str "items.",Note [Para [Str "In",Space,Str "list."]]]]]
383273,Para [Str "This",Space,Str "paragraph",Space,Str "should",Space,Str "not",Space,Str "be",Space,Str "part",Space,Str "of",Space,Str "the",Space,Str "note,",Space,Str "as",Space,Str "it",Space,Str "is",Space,Str "not",Space,Str "indented."]
384274,Header 1 [Str "Tables"]
385275,Para [Str "Simple",Space,Str "table",Space,Str "with",Space,Str "caption:"]