@@ -3,6 +3,7 @@
33\usepackage[utf8x]{inputenc}
44\setlength{\parindent}{0pt}
55\setlength{\parskip}{6pt plus 2pt minus 1pt}
6+
67\newcommand{\textsubscript}[1]{\ensuremath{_{\scriptsize\textrm{#1}}}}
78\usepackage[breaklinks=true]{hyperref}
89\usepackage[normalem]{ulem}
@@ -10,6 +11,7 @@
1011\usepackage{fancyvrb}
1112\usepackage{graphicx}
1213\usepackage{url}
14+
1315\setcounter{secnumdepth}{0}
1416\VerbatimFootnotes % allows verbatim text in footnotes
1517\title{Pandoc Test Suite}
@@ -18,7 +20,8 @@
1820\begin{document}
1921\maketitle
2022
21−This is a set of tests for pandoc. Most of them are adapted from John Gruber's markdown test suite.
23+This is a set of tests for pandoc. Most of them are adapted from
24+John Gruber's markdown test suite.
2225
2326\begin{center}\rule{3in}{0.4pt}\end{center}
2427
@@ -50,12 +53,13 @@ with no blank line
5053
5154Here's a regular paragraph.
5255
53−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.
56+In Markdown 1.0.0 and earlier. Version 8. This line turns into a
57+list item. Because a hard-wrapped line in the middle of a paragraph
58+looked like a list item.
5459
5560Here's one with a bullet. * criminey.
5661
57−There should be a hard line break\\
58−here.
62+There should be a hard line break\\here.
5963
6064\begin{center}\rule{3in}{0.4pt}\end{center}
6165
@@ -78,8 +82,10 @@ sub status {
7882A list:
7983
8084\begin{enumerate}[1.]
81−\item item one
82−\item item two
85+\item
86+ item one
87+\item
88+ item two
8389\end{enumerate}
8490Nested block quotes:
8591
@@ -107,8 +113,10 @@ sub status {
107113\end{quote}
108114\begin{quote}
109115\begin{enumerate}[1.]
110−\item do laundry
111−\item take out the trash
116+\item
117+ do laundry
118+\item
119+ take out the trash
112120\end{enumerate}
113121\end{quote}
114122Here's a nested one:
@@ -154,52 +162,70 @@ These should not be escaped: \$ \\ \> \[ \{
154162Asterisks tight:
155163
156164\begin{itemize}
157−\item asterisk 1
158−\item asterisk 2
159−\item asterisk 3
165+\item
166+ asterisk 1
167+\item
168+ asterisk 2
169+\item
170+ asterisk 3
160171\end{itemize}
161172Asterisks loose:
162173
163174\begin{itemize}
164−\item asterisk 1
175+\item
176+ asterisk 1
165177
166−\item asterisk 2
178+\item
179+ asterisk 2
167180
168−\item asterisk 3
181+\item
182+ asterisk 3
169183
170184\end{itemize}
171185Pluses tight:
172186
173187\begin{itemize}
174−\item Plus 1
175−\item Plus 2
176−\item Plus 3
188+\item
189+ Plus 1
190+\item
191+ Plus 2
192+\item
193+ Plus 3
177194\end{itemize}
178195Pluses loose:
179196
180197\begin{itemize}
181−\item Plus 1
198+\item
199+ Plus 1
182200
183−\item Plus 2
201+\item
202+ Plus 2
184203
185−\item Plus 3
204+\item
205+ Plus 3
186206
187207\end{itemize}
188208Minuses tight:
189209
190210\begin{itemize}
191−\item Minus 1
192−\item Minus 2
193−\item Minus 3
211+\item
212+ Minus 1
213+\item
214+ Minus 2
215+\item
216+ Minus 3
194217\end{itemize}
195218Minuses loose:
196219
197220\begin{itemize}
198−\item Minus 1
221+\item
222+ Minus 1
199223
200−\item Minus 2
224+\item
225+ Minus 2
201226
202−\item Minus 3
227+\item
228+ Minus 3
203229
204230\end{itemize}
205231\subsection{Ordered}
@@ -207,144 +233,192 @@ Minuses loose:
207233Tight:
208234
209235\begin{enumerate}[1.]
210−\item First
211−\item Second
212−\item Third
236+\item
237+ First
238+\item
239+ Second
240+\item
241+ Third
213242\end{enumerate}
214243and:
215244
216245\begin{enumerate}[1.]
217−\item One
218−\item Two
219−\item Three
246+\item
247+ One
248+\item
249+ Two
250+\item
251+ Three
220252\end{enumerate}
221253Loose using tabs:
222254
223255\begin{enumerate}[1.]
224−\item First
256+\item
257+ First
225258
226−\item Second
259+\item
260+ Second
227261
228−\item Third
262+\item
263+ Third
229264
230265\end{enumerate}
231266and using spaces:
232267
233268\begin{enumerate}[1.]
234−\item One
269+\item
270+ One
235271
236−\item Two
272+\item
273+ Two
237274
238−\item Three
275+\item
276+ Three
239277
240278\end{enumerate}
241279Multiple paragraphs:
242280
243281\begin{enumerate}[1.]
244−\item Item 1, graf one.
282+\item
283+ Item 1, graf one.
245284
246−Item 1. graf two. The quick brown fox jumped over the lazy dog's back.
285+ Item 1. graf two. The quick brown fox jumped over the lazy dog's
286+ back.
247287
248−\item Item 2.
288+\item
289+ Item 2.
249290
250−\item Item 3.
291+\item
292+ Item 3.
251293
252294\end{enumerate}
253295\subsection{Nested}
254296
255297\begin{itemize}
256−\item Tab
257−\begin{itemize}
258−\item Tab
259−\begin{itemize}
260−\item Tab
261−\end{itemize}
262−\end{itemize}
298+\item
299+ Tab
300+ \begin{itemize}
301+ \item
302+ Tab
303+ \begin{itemize}
304+ \item
305+ Tab
306+ \end{itemize}
307+ \end{itemize}
263308\end{itemize}
264309Here's another:
265310
266311\begin{enumerate}[1.]
267−\item First
268−\item Second:
269−\begin{itemize}
270−\item Fee
271−\item Fie
272−\item Foe
273−\end{itemize}
274−\item Third
312+\item
313+ First
314+\item
315+ Second:
316+ \begin{itemize}
317+ \item
318+ Fee
319+ \item
320+ Fie
321+ \item
322+ Foe
323+ \end{itemize}
324+\item
325+ Third
275326\end{enumerate}
276327Same thing but with paragraphs:
277328
278329\begin{enumerate}[1.]
279−\item First
280−
281−\item Second:
282−
283−\begin{itemize}
284−\item Fee
285−\item Fie
286−\item Foe
287−\end{itemize}
288−\item Third
330+\item
331+ First
332+
333+\item
334+ Second:
335+
336+ \begin{itemize}
337+ \item
338+ Fee
339+ \item
340+ Fie
341+ \item
342+ Foe
343+ \end{itemize}
344+\item
345+ Third
289346
290347\end{enumerate}
291348\subsection{Tabs and spaces}
292349
293350\begin{itemize}
294−\item this is a list item indented with tabs
351+\item
352+ this is a list item indented with tabs
295353
296−\item this is a list item indented with spaces
354+\item
355+ this is a list item indented with spaces
297356
298−\begin{itemize}
299−\item this is an example list item indented with tabs
357+ \begin{itemize}
358+ \item
359+ this is an example list item indented with tabs
300360
301−\item this is an example list item indented with spaces
361+ \item
362+ this is an example list item indented with spaces
302363
303−\end{itemize}
364+ \end{itemize}
304365\end{itemize}
305366\subsection{Fancy list markers}
306367
307368\begin{enumerate}[(1)]
308369\setcounter{enumi}{1}
309−\item begins with 2
310−\item and now 3
311−
312−with a continuation
313−
314−\begin{enumerate}[i.]
315−\setcounter{enumii}{3}
316−\item sublist with roman numerals, starting with 4
317−\item more items
318−\begin{enumerate}[(A)]
319−\item a subsublist
320−\item a subsublist
321−\end{enumerate}
322−\end{enumerate}
370+\item
371+ begins with 2
372+\item
373+ and now 3
374+
375+ with a continuation
376+
377+ \begin{enumerate}[i.]
378+ \setcounter{enumii}{3}
379+ \item
380+ sublist with roman numerals, starting with 4
381+ \item
382+ more items
383+ \begin{enumerate}[(A)]
384+ \item
385+ a subsublist
386+ \item
387+ a subsublist
388+ \end{enumerate}
389+ \end{enumerate}
323390\end{enumerate}
324391Nesting:
325392
326393\begin{enumerate}[A.]
327−\item Upper Alpha
328−\begin{enumerate}[I.]
329−\item Upper Roman.
330−\begin{enumerate}[(1)]
331−\setcounter{enumiii}{5}
332−\item Decimal start with 6
333−\begin{enumerate}[a)]
334−\setcounter{enumiv}{2}
335−\item Lower alpha with paren
336−\end{enumerate}
337−\end{enumerate}
338−\end{enumerate}
394+\item
395+ Upper Alpha
396+ \begin{enumerate}[I.]
397+ \item
398+ Upper Roman.
399+ \begin{enumerate}[(1)]
400+ \setcounter{enumiii}{5}
401+ \item
402+ Decimal start with 6
403+ \begin{enumerate}[a)]
404+ \setcounter{enumiv}{2}
405+ \item
406+ Lower alpha with paren
407+ \end{enumerate}
408+ \end{enumerate}
409+ \end{enumerate}
339410\end{enumerate}
340411Autonumbering:
341412
342413\begin{enumerate}
343−\item Autonumber.
344−\item More.
345−\begin{enumerate}
346−\item Nested.
347−\end{enumerate}
414+\item
415+ Autonumber.
416+\item
417+ More.
418+ \begin{enumerate}
419+ \item
420+ Nested.
421+ \end{enumerate}
348422\end{enumerate}
349423Should not be a list item:
350424
@@ -359,35 +433,46 @@ B. Williams
359433Tight using spaces:
360434
361435\begin{description}
362−\item[apple] red fruit
363−\item[orange] orange fruit
364−\item[banana] yellow fruit
436+\item[apple]
437+red fruit
438+\item[orange]
439+orange fruit
440+\item[banana]
441+yellow fruit
365442\end{description}
366443Tight using tabs:
367444
368445\begin{description}
369−\item[apple] red fruit
370−\item[orange] orange fruit
371−\item[banana] yellow fruit
446+\item[apple]
447+red fruit
448+\item[orange]
449+orange fruit
450+\item[banana]
451+yellow fruit
372452\end{description}
373453Loose:
374454
375455\begin{description}
376−\item[apple] red fruit
456+\item[apple]
457+red fruit
377458
378−\item[orange] orange fruit
459+\item[orange]
460+orange fruit
379461
380−\item[banana] yellow fruit
462+\item[banana]
463+yellow fruit
381464
382465\end{description}
383466Multiple blocks with italics:
384467
385468\begin{description}
386−\item[\emph{apple}] red fruit
469+\item[\emph{apple}]
470+red fruit
387471
388472contains seeds, crisp, pleasant to taste
389473
390−\item[\emph{orange}] orange fruit
474+\item[\emph{orange}]
475+orange fruit
391476
392477\begin{verbatim}
393478{ orange code block }
@@ -464,15 +549,20 @@ So is \textbf{\emph{this}} word.
464549
465550So is \textbf{\emph{this}} word.
466551
467−This is code: \verb!>!, \verb!$!, \verb!\!, \verb!\$!, \verb!<html>!.
552+This is code: \verb!>!, \verb!$!, \verb!\!, \verb!\$!,
553+\verb!<html>!.
468554
469555\sout{This is \emph{strikeout}.}
470556
471−Superscripts: a\textsuperscript{bc}d a\textsuperscript{\emph{hello}} a\textsuperscript{hello there}.
557+Superscripts: a\textsuperscript{bc}d
558+a\textsuperscript{\emph{hello}} a\textsuperscript{hello there}.
472559
473−Subscripts: H\textsubscript{2}O, H\textsubscript{23}O, H\textsubscript{many of them}O.
560+Subscripts: H\textsubscript{2}O, H\textsubscript{23}O,
561+H\textsubscript{many of them}O.
474562
475−These should not be superscripts or subscripts, because of the unescaped spaces: a\^{}b c\^{}d, a\ensuremath{\sim}b c\ensuremath{\sim}d.
563+These should not be superscripts or subscripts, because of the
564+unescaped spaces: a\^{}b c\^{}d, a\ensuremath{\sim}b
565+c\ensuremath{\sim}d.
476566
477567\begin{center}\rule{3in}{0.4pt}\end{center}
478568
@@ -486,7 +576,8 @@ These should not be superscripts or subscripts, because of the unescaped spaces:
486576
487577`He said, ``I want to go.''\,' Were you alive in the 70's?
488578
489−Here is some quoted `\verb!code!' and a ``\href{http://example.com/?foo=1&bar=2}{quoted link}''.
579+Here is some quoted `\verb!code!' and a
580+``\href{http://example.com/?foo=1&bar=2}{quoted link}''.
490581
491582Some dashes: one---two---three---four---five.
492583
@@ -499,22 +590,36 @@ Ellipses\ldots{}and\ldots{}and\ldots{}.
499590\section{LaTeX}
500591
501592\begin{itemize}
502−\item \cite[22-23]{smith.1899}
503−\item \doublespacing
504−\item $2+2=4$
505−\item $x \in y$
506−\item $\alpha \wedge \omega$
507−\item $223$
508−\item $p$-Tree
509−\item $\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}$
510−\item Here's one that has a line break in it: $\alpha + \omega \times x^2$.
593+\item
594+ \cite[22-23]{smith.1899}
595+\item
596+ \doublespacing
597+\item
598+ $2+2=4$
599+\item
600+ $x \in y$
601+\item
602+ $\alpha \wedge \omega$
603+\item
604+ $223$
605+\item
606+ $p$-Tree
607+\item
608+ $\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}$
609+\item
610+ Here's one that has a line break in it:
611+ $\alpha + \omega \times x^2$.
511612\end{itemize}
512613These shouldn't be math:
513614
514615\begin{itemize}
515−\item To get the famous equation, write \verb!$e = mc^2$!.
516−\item \$22,000 is a \emph{lot} of money. So is \$34,000. (It worked if ``lot'' is emphasized.)
517−\item Escaped \verb!$!: \$73 \emph{this should be emphasized} 23\$.
616+\item
617+ To get the famous equation, write \verb!$e = mc^2$!.
618+\item
619+ \$22,000 is a \emph{lot} of money. So is \$34,000. (It worked if
620+ ``lot'' is emphasized.)
621+\item
622+ Escaped \verb!$!: \$73 \emph{this should be emphasized} 23\$.
518623\end{itemize}
519624Here's a LaTeX table:
520625
@@ -531,11 +636,16 @@ Cat & 1 \\ \hline
531636Here is some unicode:
532637
533638\begin{itemize}
534−\item I hat: Î
535−\item o umlaut: ö
536−\item section: §
537−\item set membership: ∈
538−\item copyright: ©
639+\item
640+ I hat: Î
641+\item
642+ o umlaut: ö
643+\item
644+ section: §
645+\item
646+ set membership: ∈
647+\item
648+ copyright: ©
539649\end{itemize}
540650AT\&T has an ampersand in their name.
541651
@@ -632,24 +742,31 @@ Foo \href{/url/}{biz}.
632742
633743\subsection{With ampersands}
634744
635−Here's a \href{http://example.com/?foo=1&bar=2}{link with an ampersand in the URL}.
745+Here's a
746+\href{http://example.com/?foo=1&bar=2}{link with an ampersand in the URL}.
636747
637−Here's a link with an amersand in the link text: \href{http://att.com/}{AT\&T}.
748+Here's a link with an amersand in the link text:
749+\href{http://att.com/}{AT\&T}.
638750
639751Here's an \href{/script?foo=1&bar=2}{inline link}.
640752
641−Here's an \href{/script?foo=1&bar=2}{inline link in pointy braces}.
753+Here's an
754+\href{/script?foo=1&bar=2}{inline link in pointy braces}.
642755
643756\subsection{Autolinks}
644757
645758With an ampersand: \url{http://example.com/?foo=1&bar=2}
646759
647760\begin{itemize}
648−\item In a list?
649−\item \url{http://example.com/}
650−\item It should.
761+\item
762+ In a list?
763+\item
764+ \url{http://example.com/}
765+\item
766+ It should.
651767\end{itemize}
652−An e-mail address: \href{mailto:nobody@nowhere.net}{\texttt{nobody@nowhere.net}}
768+An e-mail address:
769+\href{mailto:nobody@nowhere.net}{\texttt{nobody@nowhere.net}}
653770
654771\begin{quote}
655772Blockquoted: \url{http://example.com/}
@@ -674,29 +791,41 @@ Here is a movie \includegraphics{movie.jpg} icon.
674791
675792\section{Footnotes}
676793
677−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.
678−} and another.\footnote{Here's the long note. This one contains multiple blocks.
794+Here is a footnote
795+reference,\footnote{ Here is the footnote. It can go anywhere after the footnote
796+reference. It need not be placed at the end of the document.
797+}
798+and
799+another.\footnote{ Here's the long note. This one contains multiple blocks.
679800
680−Subsequent blocks are indented to show that they belong to the footnote (as with list items).
801+Subsequent blocks are indented to show that they belong to the
802+footnote (as with list items).
681803
682804\begin{Verbatim}
683805 { <code> }
684806\end{Verbatim}
685−If you want, you can indent every line, but you can also be lazy and just indent the first line of each block.
686−} This should \emph{not} be a footnote reference, because it contains a space.[\^{}my note] Here is an inline note.\footnote{This is \emph{easier} to type. Inline notes may contain \href{http://google.com}{links} and \verb!]! verbatim characters, as well as [bracketed text].
807+If you want, you can indent every line, but you can also be lazy
808+and just indent the first line of each block.
809+}
810+This should \emph{not} be a footnote reference, because it contains
811+a space.[\^{}my note] Here is an inline
812+note.\footnote{ This is \emph{easier} to type. Inline notes may contain
813+\href{http://google.com}{links} and \verb!]! verbatim characters,
814+as well as [bracketed text].
687815}
688816
689817\begin{quote}
690−Notes can go in quotes.\footnote{In quote.
818+Notes can go in quotes.\footnote{ In quote.
691819}
692820
693821\end{quote}
694822\begin{enumerate}[1.]
695−\item And in list items.\footnote{In list.
823+\item
824+ And in list items.\footnote{ In list.
696825}
697826\end{enumerate}
698−This paragraph should not be part of the note, as it is not indented.
827+This paragraph should not be part of the note, as it is not
828+indented.
699829
700830
701831\end{document}
702−