@@ -59,47 +59,49 @@
5959 \whitespace\setupindenting[no]},
6060 after={\stopnarrower\whitespace}]
6161
62−\setupheads[sectionnumber=no, style=\bf]
63−\doctitle{Pandoc Test Suite}
64− \author{John MacFarlane \& Anonymous}
65− \date{July 17, 2006}
6662
63+\doctitle{Pandoc Test Suite}
64+\author{John MacFarlane \& Anonymous}
65+\date{July 17, 2006}
6766\starttext
6867\maketitle
6968
70−This is a set of tests for pandoc. Most of them are adapted from John Gruber's markdown test suite.
69+This is a set of tests for pandoc. Most of them are adapted from
70+John Gruber's markdown test suite.
7171
7272\thinrule
7373
74−\section{Headers}
74+\subject{Headers}
7575
76−\subsection{Level 2 with an \useurl[1][/url][][embedded link]\from[1]}
76+\subsubject{Level 2 with an \useurl[1][/url][][embedded link]\from[1]}
7777
78−\subsubsection{Level 3 with {\em emphasis}}
78+\subsubsubject{Level 3 with {\em emphasis}}
7979
8080Level 4
8181
8282Level 5
8383
84−\section{Level 1}
84+\subject{Level 1}
8585
86−\subsection{Level 2 with {\em emphasis}}
86+\subsubject{Level 2 with {\em emphasis}}
8787
88−\subsubsection{Level 3}
88+\subsubsubject{Level 3}
8989
9090with no blank line
9191
92−\subsection{Level 2}
92+\subsubject{Level 2}
9393
9494with no blank line
9595
9696\thinrule
9797
98−\section{Paragraphs}
98+\subject{Paragraphs}
9999
100100Here's a regular paragraph.
101101
102−In Markdown 1.0.0 and earlier. Version 8. This line turns into a list item. Because a hard-wrapped line in the middle of a paragraph looked like a list item.
102+In Markdown 1.0.0 and earlier. Version 8. This line turns into a
103+list item. Because a hard-wrapped line in the middle of a paragraph
104+looked like a list item.
103105
104106Here's one with a bullet. * criminey.
105107
@@ -108,7 +110,7 @@ here.
108110
109111\thinrule
110112
111−\section{Block Quotes}
113+\subject{Block Quotes}
112114
113115E-mail style:
114116
@@ -116,7 +118,6 @@ E-mail style:
116118This is a block quote. It is pretty short.
117119
118120\stopblockquote
119−
120121\startblockquote
121122Code in a block quote:
122123
@@ -125,11 +126,14 @@ sub status {
125126 print "working";
126127}
127128\stoptyping
129+
128130A list:
129131
130132\startitemize
131−\sym{1.} item one
132−\sym{2.} item two
133+\sym{1.}
134+ item one
135+\sym{2.}
136+ item two
133137\stopitemize
134138Nested block quotes:
135139
@@ -137,14 +141,11 @@ Nested block quotes:
137141nested
138142
139143\stopblockquote
140−
141144\startblockquote
142145nested
143146
144147\stopblockquote
145−
146148\stopblockquote
147−
148149This should not be a block quote: 2 \lettermore{} 1.
149150
150151Box-style:
@@ -157,15 +158,16 @@ sub status {
157158 print "working";
158159}
159160\stoptyping
160−\stopblockquote
161161
162+\stopblockquote
162163\startblockquote
163164\startitemize
164−\sym{1.} do laundry
165−\sym{2.} take out the trash
165+\sym{1.}
166+ do laundry
167+\sym{2.}
168+ take out the trash
166169\stopitemize
167170\stopblockquote
168−
169171Here's a nested one:
170172
171173\startblockquote
@@ -175,14 +177,12 @@ Joe said:
175177Don't quote me.
176178
177179\stopblockquote
178−
179180\stopblockquote
180−
181181And a following paragraph.
182182
183183\thinrule
184184
185−\section{Code Blocks}
185+\subject{Code Blocks}
186186
187187Code:
188188
@@ -195,6 +195,7 @@ sub status {
195195
196196this code block is indented by one tab
197197\stoptyping
198+
198199And:
199200
200201\starttyping
@@ -202,202 +203,269 @@ And:
202203
203204These should not be escaped: \$ \\ \> \[ \{
204205\stoptyping
206+
205207\thinrule
206208
207−\section{Lists}
209+\subject{Lists}
208210
209−\subsection{Unordered}
211+\subsubject{Unordered}
210212
211213Asterisks tight:
212214
213215\startltxitem
214−\item asterisk 1
215−\item asterisk 2
216−\item asterisk 3
216+\item
217+ asterisk 1
218+\item
219+ asterisk 2
220+\item
221+ asterisk 3
217222\stopltxitem
218223Asterisks loose:
219224
220225\startltxitem
221−\item asterisk 1
226+\item
227+ asterisk 1
222228
223−\item asterisk 2
229+\item
230+ asterisk 2
224231
225−\item asterisk 3
232+\item
233+ asterisk 3
226234
227235\stopltxitem
228236Pluses tight:
229237
230238\startltxitem
231−\item Plus 1
232−\item Plus 2
233−\item Plus 3
239+\item
240+ Plus 1
241+\item
242+ Plus 2
243+\item
244+ Plus 3
234245\stopltxitem
235246Pluses loose:
236247
237248\startltxitem
238−\item Plus 1
249+\item
250+ Plus 1
239251
240−\item Plus 2
252+\item
253+ Plus 2
241254
242−\item Plus 3
255+\item
256+ Plus 3
243257
244258\stopltxitem
245259Minuses tight:
246260
247261\startltxitem
248−\item Minus 1
249−\item Minus 2
250−\item Minus 3
262+\item
263+ Minus 1
264+\item
265+ Minus 2
266+\item
267+ Minus 3
251268\stopltxitem
252269Minuses loose:
253270
254271\startltxitem
255−\item Minus 1
272+\item
273+ Minus 1
256274
257−\item Minus 2
275+\item
276+ Minus 2
258277
259−\item Minus 3
278+\item
279+ Minus 3
260280
261281\stopltxitem
262−\subsection{Ordered}
282+\subsubject{Ordered}
263283
264284Tight:
265285
266286\startitemize
267−\sym{1.} First
268−\sym{2.} Second
269−\sym{3.} Third
287+\sym{1.}
288+ First
289+\sym{2.}
290+ Second
291+\sym{3.}
292+ Third
270293\stopitemize
271294and:
272295
273296\startitemize
274−\sym{1.} One
275−\sym{2.} Two
276−\sym{3.} Three
297+\sym{1.}
298+ One
299+\sym{2.}
300+ Two
301+\sym{3.}
302+ Three
277303\stopitemize
278304Loose using tabs:
279305
280306\startitemize
281−\sym{1.} First
307+\sym{1.}
308+ First
282309
283−\sym{2.} Second
310+\sym{2.}
311+ Second
284312
285−\sym{3.} Third
313+\sym{3.}
314+ Third
286315
287316\stopitemize
288317and using spaces:
289318
290319\startitemize
291−\sym{1.} One
320+\sym{1.}
321+ One
292322
293−\sym{2.} Two
323+\sym{2.}
324+ Two
294325
295−\sym{3.} Three
326+\sym{3.}
327+ Three
296328
297329\stopitemize
298330Multiple paragraphs:
299331
300332\startitemize
301−\sym{1.} Item 1, graf one.
333+\sym{1.}
334+ Item 1, graf one.
302335
303−Item 1. graf two. The quick brown fox jumped over the lazy dog's back.
336+ Item 1. graf two. The quick brown fox jumped over the lazy dog's
337+ back.
304338
305−\sym{2.} Item 2.
339+\sym{2.}
340+ Item 2.
306341
307−\sym{3.} Item 3.
342+\sym{3.}
343+ Item 3.
308344
309345\stopitemize
310−\subsection{Nested}
346+\subsubject{Nested}
311347
312348\startltxitem
313−\item Tab
314−\startltxitem
315−\item Tab
316−\startltxitem
317−\item Tab
318−\stopltxitem
319−\stopltxitem
349+\item
350+ Tab
351+ \startltxitem
352+ \item
353+ Tab
354+ \startltxitem
355+ \item
356+ Tab
357+ \stopltxitem
358+ \stopltxitem
320359\stopltxitem
321360Here's another:
322361
323362\startitemize
324−\sym{1.} First
325−\sym{2.} Second:
326−\startltxitem
327−\item Fee
328−\item Fie
329−\item Foe
330−\stopltxitem
331−\sym{3.} Third
363+\sym{1.}
364+ First
365+\sym{2.}
366+ Second:
367+ \startltxitem
368+ \item
369+ Fee
370+ \item
371+ Fie
372+ \item
373+ Foe
374+ \stopltxitem
375+\sym{3.}
376+ Third
332377\stopitemize
333378Same thing but with paragraphs:
334379
335380\startitemize
336−\sym{1.} First
337−
338−\sym{2.} Second:
339−
340−\startltxitem
341−\item Fee
342−\item Fie
343−\item Foe
344−\stopltxitem
345−\sym{3.} Third
381+\sym{1.}
382+ First
383+
384+\sym{2.}
385+ Second:
386+
387+ \startltxitem
388+ \item
389+ Fee
390+ \item
391+ Fie
392+ \item
393+ Foe
394+ \stopltxitem
395+\sym{3.}
396+ Third
346397
347398\stopitemize
348−\subsection{Tabs and spaces}
399+\subsubject{Tabs and spaces}
349400
350401\startltxitem
351−\item this is a list item indented with tabs
402+\item
403+ this is a list item indented with tabs
352404
353−\item this is a list item indented with spaces
405+\item
406+ this is a list item indented with spaces
354407
355−\startltxitem
356−\item this is an example list item indented with tabs
408+ \startltxitem
409+ \item
410+ this is an example list item indented with tabs
357411
358−\item this is an example list item indented with spaces
412+ \item
413+ this is an example list item indented with spaces
359414
415+ \stopltxitem
360416\stopltxitem
361−\stopltxitem
362−\subsection{Fancy list markers}
417+\subsubject{Fancy list markers}
363418
364419\startitemize[width=2em]
365−\sym{(2)} begins with 2
366−\sym{(3)} and now 3
367−
368−with a continuation
369−
370−\startitemize[width=2em]
371−\sym{iv.} sublist with roman numerals, starting with 4
372−\sym{v.} more items
373−\startitemize[width=2em]
374−\sym{(A)} a subsublist
375−\sym{(B)} a subsublist
376−\stopitemize
377−\stopitemize
420+\sym{(2)}
421+ begins with 2
422+\sym{(3)}
423+ and now 3
424+
425+ with a continuation
426+
427+ \startitemize[width=2em]
428+ \sym{iv.}
429+ sublist with roman numerals, starting with 4
430+ \sym{v.}
431+ more items
432+ \startitemize[width=2em]
433+ \sym{(A)}
434+ a subsublist
435+ \sym{(B)}
436+ a subsublist
437+ \stopitemize
438+ \stopitemize
378439\stopitemize
379440Nesting:
380441
381442\startitemize
382−\sym{A.} Upper Alpha
383−\startitemize
384−\sym{I.} Upper Roman.
385−\startitemize[width=2em]
386−\sym{(6)} Decimal start with 6
387−\startitemize
388−\sym{c)} Lower alpha with paren
389−\stopitemize
390−\stopitemize
391−\stopitemize
443+\sym{A.}
444+ Upper Alpha
445+ \startitemize
446+ \sym{I.}
447+ Upper Roman.
448+ \startitemize[width=2em]
449+ \sym{(6)}
450+ Decimal start with 6
451+ \startitemize
452+ \sym{c)}
453+ Lower alpha with paren
454+ \stopitemize
455+ \stopitemize
456+ \stopitemize
392457\stopitemize
393458Autonumbering:
394459
395460\startltxenum
396−\item Autonumber.
397−\item More.
398−\startltxenum
399−\item Nested.
400−\stopltxenum
461+\item
462+ Autonumber.
463+\item
464+ More.
465+ \startltxenum
466+ \item
467+ Nested.
468+ \stopltxenum
401469\stopltxenum
402470Should not be a list item:
403471
@@ -407,36 +475,30 @@ B. Williams
407475
408476\thinrule
409477
410−\section{Definition Lists}
478+\subject{Definition Lists}
411479
412480Tight using spaces:
413481
414482\startdescr{apple}
415483red fruit
416−
417484\stopdescr
418485\startdescr{orange}
419486orange fruit
420−
421487\stopdescr
422488\startdescr{banana}
423489yellow fruit
424−
425490\stopdescr
426491
427492Tight using tabs:
428493
429494\startdescr{apple}
430495red fruit
431−
432496\stopdescr
433497\startdescr{orange}
434498orange fruit
435−
436499\stopdescr
437500\startdescr{banana}
438501yellow fruit
439−
440502\stopdescr
441503
442504Loose:
@@ -444,17 +506,14 @@ Loose:
444506\startdescr{apple}
445507red fruit
446508
447−
448509\stopdescr
449510\startdescr{orange}
450511orange fruit
451512
452−
453513\stopdescr
454514\startdescr{banana}
455515yellow fruit
456516
457−
458517\stopdescr
459518
460519Multiple blocks with italics:
@@ -464,7 +523,6 @@ red fruit
464523
465524contains seeds, crisp, pleasant to taste
466525
467−
468526\stopdescr
469527\startdescr{{\em orange}}
470528orange fruit
@@ -472,15 +530,14 @@ orange fruit
472530\starttyping
473531{ orange code block }
474532\stoptyping
533+
475534\startblockquote
476535orange block quote
477536
478537\stopblockquote
479−
480−
481538\stopdescr
482539
483−\section{HTML Blocks}
540+\subject{HTML Blocks}
484541
485542Simple block on one line:
486543
@@ -503,11 +560,13 @@ This should be a code block, though:
503560 foo
504561</div>
505562\stoptyping
563+
506564As should this:
507565
508566\starttyping
509567<div>foo</div>
510568\stoptyping
569+
511570Now, nested:
512571
513572foo
@@ -520,6 +579,7 @@ Code block:
520579\starttyping
521580<!-- Comment -->
522581\stoptyping
582+
523583Just plain comment, with trailing spaces on the line:
524584
525585Code:
@@ -527,11 +587,12 @@ Code:
527587\starttyping
528588<hr />
529589\stoptyping
590+
530591Hr's:
531592
532593\thinrule
533594
534−\section{Inline Markup}
595+\subject{Inline Markup}
535596
536597This is {\em emphasized}, and so {\em is this}.
537598
@@ -547,7 +608,8 @@ So is {\bf {\em this}} word.
547608
548609So is {\bf {\em this}} word.
549610
550−This is code: \type{>}, \type{$}, \type{\}, \type{\$}, \type{<html>}.
611+This is code: \type{>}, \type{$}, \type{\}, \type{\$},
612+\type{<html>}.
551613
552614\overstrikes{This is {\em strikeout}.}
553615
@@ -555,21 +617,27 @@ Superscripts: a\high{bc}d a\high{{\em hello}} a\high{hello there}.
555617
556618Subscripts: H\low{2}O, H\low{23}O, H\low{many of them}O.
557619
558−These should not be superscripts or subscripts, because of the unescaped spaces: a\letterhat{}b c\letterhat{}d, a\lettertilde{}b c\lettertilde{}d.
620+These should not be superscripts or subscripts, because of the
621+unescaped spaces: a\letterhat{}b c\letterhat{}d, a\lettertilde{}b
622+c\lettertilde{}d.
559623
560624\thinrule
561625
562−\section{Smart quotes, ellipses, dashes}
626+\subject{Smart quotes, ellipses, dashes}
563627
564−\quotation{Hello,} said the spider. \quotation{\quote{Shelob} is my name.}
628+\quotation{Hello,} said the spider.
629+\quotation{\quote{Shelob} is my name.}
565630
566631\quote{A}, \quote{B}, and \quote{C} are letters.
567632
568−\quote{Oak,} \quote{elm,} and \quote{beech} are names of trees. So is \quote{pine.}
633+\quote{Oak,} \quote{elm,} and \quote{beech} are names of trees. So
634+is \quote{pine.}
569635
570−\quote{He said, \quotation{I want to go.}} Were you alive in the 70's?
636+\quote{He said, \quotation{I want to go.}} Were you alive in the
637+70's?
571638
572−Here is some quoted \quote{\type{code}} and a \quotation{\useurl[3][http://example.com/?foo=1&bar=2][][quoted link]\from[3]}.
639+Here is some quoted \quote{\type{code}} and a
640+\quotation{\useurl[3][http://example.com/?foo=1&bar=2][][quoted link]\from[3]}.
573641
574642Some dashes: one---two---three---four---five.
575643
@@ -579,16 +647,21 @@ Ellipses\ldots{}and\ldots{}and\ldots{}.
579647
580648\thinrule
581649
582−\section{Special Characters}
650+\subject{Special Characters}
583651
584652Here is some unicode:
585653
586654\startltxitem
587−\item I hat: Î
588−\item o umlaut: ö
589−\item section: §
590−\item set membership: ∈
591−\item copyright: ©
655+\item
656+ I hat: Î
657+\item
658+ o umlaut: ö
659+\item
660+ section: §
661+\item
662+ set membership: ∈
663+\item
664+ copyright: ©
592665\stopltxitem
593666AT\&T has an ampersand in their name.
594667
@@ -634,9 +707,9 @@ Minus: -
634707
635708\thinrule
636709
637−\section{Links}
710+\subject{Links}
638711
639−\subsection{Explicit}
712+\subsubject{Explicit}
640713
641714Just a \useurl[4][/url/][][URL]\from[4].
642715
@@ -656,7 +729,7 @@ Just a \useurl[4][/url/][][URL]\from[4].
656729
657730\useurl[12][][][Empty]\from[12].
658731
659−\subsection{Reference}
732+\subsubject{Reference}
660733
661734Foo \useurl[13][/url/][][bar]\from[13].
662735
@@ -679,44 +752,55 @@ This should [not][] be a link.
679752\starttyping
680753[not]: /url
681754\stoptyping
755+
682756Foo \useurl[21][/url/][][bar]\from[21].
683757
684758Foo \useurl[22][/url/][][biz]\from[22].
685759
686−\subsection{With ampersands}
760+\subsubject{With ampersands}
687761
688−Here's a \useurl[23][http://example.com/?foo=1&bar=2][][link with an ampersand in the URL]\from[23].
762+Here's a
763+\useurl[23][http://example.com/?foo=1&bar=2][][link with an ampersand in the URL]\from[23].
689764
690−Here's a link with an amersand in the link text: \useurl[24][http://att.com/][][AT\&T]\from[24].
765+Here's a link with an amersand in the link text:
766+\useurl[24][http://att.com/][][AT\&T]\from[24].
691767
692−Here's an \useurl[25][/script?foo=1&bar=2][][inline link]\from[25].
768+Here's an
769+\useurl[25][/script?foo=1&bar=2][][inline link]\from[25].
693770
694−Here's an \useurl[26][/script?foo=1&bar=2][][inline link in pointy braces]\from[26].
771+Here's an
772+\useurl[26][/script?foo=1&bar=2][][inline link in pointy braces]\from[26].
695773
696−\subsection{Autolinks}
774+\subsubject{Autolinks}
697775
698−With an ampersand: \useurl[27][http://example.com/?foo=1&bar=2][][http://example.com/?foo=1\&bar=2]\from[27]
776+With an ampersand:
777+\useurl[27][http://example.com/?foo=1&bar=2][][http://example.com/?foo=1\&bar=2]\from[27]
699778
700779\startltxitem
701−\item In a list?
702−\item \useurl[28][http://example.com/][][http://example.com/]\from[28]
703−\item It should.
780+\item
781+ In a list?
782+\item
783+ \useurl[28][http://example.com/][][http://example.com/]\from[28]
784+\item
785+ It should.
704786\stopltxitem
705−An e-mail address: \useurl[29][mailto:nobody@nowhere.net][][nobody@nowhere.net]\from[29]
787+An e-mail address:
788+\useurl[29][mailto:nobody@nowhere.net][][nobody@nowhere.net]\from[29]
706789
707790\startblockquote
708−Blockquoted: \useurl[30][http://example.com/][][http://example.com/]\from[30]
791+Blockquoted:
792+\useurl[30][http://example.com/][][http://example.com/]\from[30]
709793
710794\stopblockquote
711−
712795Auto-links should not occur here: \type{<http://example.com/>}
713796
714797\starttyping
715798or here: <http://example.com/>
716799\stoptyping
800+
717801\thinrule
718802
719−\section{Images}
803+\subject{Images}
720804
721805From \quotation{Voyage dans la Lune} by Georges Melies (1902):
722806
@@ -726,7 +810,8 @@ From \quotation{Voyage dans la Lune} by Georges Melies (1902):
726810{Voyage dans la Lune}
727811{\externalfigure[lalune.jpg]}
728812
729−Here is a movie \placefigure
813+Here is a movie
814+\placefigure
730815[]
731816[fig:movie]
732817{}
@@ -734,37 +819,41 @@ Here is a movie \placefigure
734819
735820\thinrule
736821
737−\section{Footnotes}
738−
739−Here is a footnote reference,\footnote{Here is the footnote. It can go anywhere after the footnote reference. It need not be placed at the end of the document.
822+\subject{Footnotes}
740823
741−} and another.\footnote{Here's the long note. This one contains multiple blocks.
824+Here is a footnote reference,%
825+\footnote{Here is the footnote. It can go anywhere after the footnote
826+reference. It need not be placed at the end of the document.}
827+and another.%
828+\footnote{Here's the long note. This one contains multiple blocks.
742829
743−Subsequent blocks are indented to show that they belong to the footnote (as with list items).
830+Subsequent blocks are indented to show that they belong to the
831+footnote (as with list items).
744832
745833\starttyping
746834 { <code> }
747835\stoptyping
748−If you want, you can indent every line, but you can also be lazy and just indent the first line of each block.
749836
750−} This should {\em not} be a footnote reference, because it contains a space.[\letterhat{}my note] Here is an inline note.\footnote{This is {\em easier} to type. Inline notes may contain \useurl[31][http://google.com][][links]\from[31] and \type{]} verbatim characters, as well as [bracketed text].
751−
752−}
837+If you want, you can indent every line, but you can also be lazy
838+and just indent the first line of each block.}
839+This should {\em not} be a footnote reference, because it contains
840+a space.[\letterhat{}my note] Here is an inline note.%
841+\footnote{This is {\em easier} to type. Inline notes may contain
842+\useurl[31][http://google.com][][links]\from[31] and \type{]}
843+verbatim characters, as well as [bracketed text].}
753844
754845\startblockquote
755−Notes can go in quotes.\footnote{In quote.
756−
757−}
846+Notes can go in quotes.%
847+\footnote{In quote.}
758848
759849\stopblockquote
760−
761850\startitemize
762−\sym{1.} And in list items.\footnote{In list.
763−
764−}
851+\sym{1.}
852+ And in list items.%
853+ \footnote{In list.}
765854\stopitemize
766−This paragraph should not be part of the note, as it is not indented.
767−
855+This paragraph should not be part of the note, as it is not
856+indented.
768857
769858\stoptext
770859