@@ -3,6 +3,7 @@
3\usepackage[utf8x]{inputenc}
3\usepackage[utf8x]{inputenc}
4\setlength{\parindent}{0pt}
4\setlength{\parindent}{0pt}
5\setlength{\parskip}{6pt plus 2pt minus 1pt}
5\setlength{\parskip}{6pt plus 2pt minus 1pt}
6\newcommand{\textsubscript}[1]{\ensuremath{_{\scriptsize\textrm{#1}}}}
7\newcommand{\textsubscript}[1]{\ensuremath{_{\scriptsize\textrm{#1}}}}
7\usepackage[breaklinks=true]{hyperref}
8\usepackage[breaklinks=true]{hyperref}
8\usepackage[normalem]{ulem}
9\usepackage[normalem]{ulem}
@@ -10,6 +11,7 @@
10\usepackage{fancyvrb}
11\usepackage{fancyvrb}
11\usepackage{graphicx}
12\usepackage{graphicx}
12\usepackage{url}
13\usepackage{url}
13\setcounter{secnumdepth}{0}
15\setcounter{secnumdepth}{0}
14\VerbatimFootnotes % allows verbatim text in footnotes
16\VerbatimFootnotes % allows verbatim text in footnotes
15\title{Pandoc Test Suite}
17\title{Pandoc Test Suite}
@@ -18,7 +20,8 @@
18\begin{document}
20\begin{document}
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.
23\begin{center}\rule{3in}{0.4pt}\end{center}
26\begin{center}\rule{3in}{0.4pt}\end{center}
@@ -50,12 +53,13 @@ with no blank line
51Here's a regular paragraph.
54Here's a regular paragraph.
56+In Markdown 1.0.0 and earlier. Version 8. This line turns into a
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.
57+list item. Because a hard-wrapped line in the middle of a paragraph
58+looked like a list item.
55Here's one with a bullet. * criminey.
60Here's one with a bullet. * criminey.
57−There should be a hard line break\\
62+There should be a hard line break\\here.
60\begin{center}\rule{3in}{0.4pt}\end{center}
64\begin{center}\rule{3in}{0.4pt}\end{center}
@@ -78,8 +82,10 @@ sub status {
80\begin{enumerate}[1.]
84\begin{enumerate}[1.]
81−\item item one
86+ item one
82−\item item two
88+ item two
83\end{enumerate}
89\end{enumerate}
84Nested block quotes:
90Nested block quotes:
@@ -107,8 +113,10 @@ sub status {
107\end{quote}
113\end{quote}
108\begin{quote}
114\begin{quote}
109\begin{enumerate}[1.]
115\begin{enumerate}[1.]
110−\item do laundry
117+ do laundry
111−\item take out the trash
119+ take out the trash
112\end{enumerate}
120\end{enumerate}
113\end{quote}
121\end{quote}
114Here's a nested one:
122Here's a nested one:
@@ -154,52 +162,70 @@ These should not be escaped: \$ \\ \> \[ \{
154Asterisks tight:
162Asterisks tight:
156\begin{itemize}
164\begin{itemize}
157−\item asterisk 1
166+ asterisk 1
158−\item asterisk 2
168+ asterisk 2
159−\item asterisk 3
170+ asterisk 3
160\end{itemize}
171\end{itemize}
161Asterisks loose:
172Asterisks loose:
163\begin{itemize}
174\begin{itemize}
164−\item asterisk 1
176+ asterisk 1
166−\item asterisk 2
179+ asterisk 2
168−\item asterisk 3
182+ asterisk 3
170\end{itemize}
184\end{itemize}
171Pluses tight:
185Pluses tight:
173\begin{itemize}
187\begin{itemize}
174−\item Plus 1
189+ Plus 1
175−\item Plus 2
191+ Plus 2
176−\item Plus 3
193+ Plus 3
177\end{itemize}
194\end{itemize}
178Pluses loose:
195Pluses loose:
180\begin{itemize}
197\begin{itemize}
181−\item Plus 1
199+ Plus 1
183−\item Plus 2
202+ Plus 2
185−\item Plus 3
205+ Plus 3
187\end{itemize}
207\end{itemize}
188Minuses tight:
208Minuses tight:
190\begin{itemize}
210\begin{itemize}
191−\item Minus 1
212+ Minus 1
192−\item Minus 2
214+ Minus 2
193−\item Minus 3
216+ Minus 3
194\end{itemize}
217\end{itemize}
195Minuses loose:
218Minuses loose:
197\begin{itemize}
220\begin{itemize}
198−\item Minus 1
222+ Minus 1
200−\item Minus 2
225+ Minus 2
202−\item Minus 3
228+ Minus 3
204\end{itemize}
230\end{itemize}
205\subsection{Ordered}
231\subsection{Ordered}
@@ -207,144 +233,192 @@ Minuses loose:
209\begin{enumerate}[1.]
235\begin{enumerate}[1.]
210−\item First
237+ First
211−\item Second
239+ Second
212−\item Third
241+ Third
213\end{enumerate}
242\end{enumerate}
216\begin{enumerate}[1.]
245\begin{enumerate}[1.]
219−\item Three
251+ Three
220\end{enumerate}
252\end{enumerate}
221Loose using tabs:
253Loose using tabs:
223\begin{enumerate}[1.]
255\begin{enumerate}[1.]
224−\item First
257+ First
226−\item Second
260+ Second
228−\item Third
263+ Third
230\end{enumerate}
265\end{enumerate}
231and using spaces:
266and using spaces:
233\begin{enumerate}[1.]
268\begin{enumerate}[1.]
238−\item Three
276+ Three
240\end{enumerate}
278\end{enumerate}
241Multiple paragraphs:
279Multiple paragraphs:
243\begin{enumerate}[1.]
281\begin{enumerate}[1.]
244−\item Item 1, graf one.
283+ Item 1, graf one.
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
248−\item Item 2.
289+ Item 2.
250−\item Item 3.
292+ Item 3.
252\end{enumerate}
294\end{enumerate}
253\subsection{Nested}
295\subsection{Nested}
255\begin{itemize}
297\begin{itemize}
257−\begin{itemize}
300+ \begin{itemize}
259−\begin{itemize}
303+ \begin{itemize}
261−\end{itemize}
306+ \end{itemize}
262−\end{itemize}
307+ \end{itemize}
263\end{itemize}
308\end{itemize}
264Here's another:
309Here's another:
266\begin{enumerate}[1.]
311\begin{enumerate}[1.]
267−\item First
313+ First
268−\item Second:
315+ Second:
269−\begin{itemize}
316+ \begin{itemize}
273−\end{itemize}
323+ \end{itemize}
274−\item Third
325+ Third
275\end{enumerate}
326\end{enumerate}
276Same thing but with paragraphs:
327Same thing but with paragraphs:
278\begin{enumerate}[1.]
329\begin{enumerate}[1.]
279−\item First
331+ First
281−\item Second:
334+ Second:
283−\begin{itemize}
336+ \begin{itemize}
287−\end{itemize}
343+ \end{itemize}
288−\item Third
345+ Third
290\end{enumerate}
347\end{enumerate}
291\subsection{Tabs and spaces}
348\subsection{Tabs and spaces}
293\begin{itemize}
350\begin{itemize}
294−\item this is a list item indented with tabs
352+ this is a list item indented with tabs
296−\item this is a list item indented with spaces
355+ this is a list item indented with spaces
298−\begin{itemize}
357+ \begin{itemize}
299−\item this is an example list item indented with tabs
359+ this is an example list item indented with tabs
301−\item this is an example list item indented with spaces
362+ this is an example list item indented with spaces
303−\end{itemize}
364+ \end{itemize}
304\end{itemize}
365\end{itemize}
305\subsection{Fancy list markers}
366\subsection{Fancy list markers}
307\begin{enumerate}[(1)]
368\begin{enumerate}[(1)]
308\setcounter{enumi}{1}
369\setcounter{enumi}{1}
309−\item begins with 2
371+ begins with 2
310−\item and now 3
373+ and now 3
312−with a continuation
375+ with a continuation
314−\begin{enumerate}[i.]
377+ \begin{enumerate}[i.]
315−\setcounter{enumii}{3}
378+ \setcounter{enumii}{3}
316−\item sublist with roman numerals, starting with 4
380+ sublist with roman numerals, starting with 4
317−\item more items
382+ more items
318−\begin{enumerate}[(A)]
383+ \begin{enumerate}[(A)]
319−\item a subsublist
385+ a subsublist
320−\item a subsublist
387+ a subsublist
321−\end{enumerate}
388+ \end{enumerate}
322−\end{enumerate}
389+ \end{enumerate}
323\end{enumerate}
390\end{enumerate}
326\begin{enumerate}[A.]
393\begin{enumerate}[A.]
327−\item Upper Alpha
395+ Upper Alpha
328−\begin{enumerate}[I.]
396+ \begin{enumerate}[I.]
329−\item Upper Roman.
398+ Upper Roman.
330−\begin{enumerate}[(1)]
399+ \begin{enumerate}[(1)]
331−\setcounter{enumiii}{5}
400+ \setcounter{enumiii}{5}
332−\item Decimal start with 6
402+ Decimal start with 6
333−\begin{enumerate}[a)]
403+ \begin{enumerate}[a)]
334−\setcounter{enumiv}{2}
404+ \setcounter{enumiv}{2}
335−\item Lower alpha with paren
406+ Lower alpha with paren
336−\end{enumerate}
407+ \end{enumerate}
337−\end{enumerate}
408+ \end{enumerate}
338−\end{enumerate}
409+ \end{enumerate}
339\end{enumerate}
410\end{enumerate}
340Autonumbering:
411Autonumbering:
342\begin{enumerate}
413\begin{enumerate}
343−\item Autonumber.
415+ Autonumber.
345−\begin{enumerate}
418+ \begin{enumerate}
346−\item Nested.
420+ Nested.
347−\end{enumerate}
421+ \end{enumerate}
348\end{enumerate}
422\end{enumerate}
349Should not be a list item:
423Should not be a list item:
@@ -359,35 +433,46 @@ B. Williams
359Tight using spaces:
433Tight using spaces:
361\begin{description}
435\begin{description}
362−\item[apple] red fruit
436+\item[apple]
363−\item[orange] orange fruit
439+orange fruit
364−\item[banana] yellow fruit
441+yellow fruit
365\end{description}
442\end{description}
366Tight using tabs:
443Tight using tabs:
368\begin{description}
445\begin{description}
369−\item[apple] red fruit
446+\item[apple]
370−\item[orange] orange fruit
449+orange fruit
371−\item[banana] yellow fruit
451+yellow fruit
372\end{description}
452\end{description}
375\begin{description}
455\begin{description}
376−\item[apple] red fruit
456+\item[apple]
378−\item[orange] orange fruit
460+orange fruit
380−\item[banana] yellow fruit
463+yellow fruit
382\end{description}
465\end{description}
383Multiple blocks with italics:
466Multiple blocks with italics:
385\begin{description}
468\begin{description}
386−\item[\emph{apple}] red fruit
469+\item[\emph{apple}]
388contains seeds, crisp, pleasant to taste
472contains seeds, crisp, pleasant to taste
390−\item[\emph{orange}] orange fruit
474+\item[\emph{orange}]
392\begin{verbatim}
477\begin{verbatim}
393{ orange code block }
478{ orange code block }
@@ -464,15 +549,20 @@ So is \textbf{\emph{this}} word.
465So is \textbf{\emph{this}} word.
550So is \textbf{\emph{this}} word.
467−This is code: \verb!>!, \verb!$!, \verb!\!, \verb!\$!, \verb!<html>!.
552+This is code: \verb!>!, \verb!$!, \verb!\!, \verb!\$!,
469\sout{This is \emph{strikeout}.}
555\sout{This is \emph{strikeout}.}
557+Superscripts: a\textsuperscript{bc}d
471−Superscripts: a\textsuperscript{bc}d a\textsuperscript{\emph{hello}} a\textsuperscript{hello there}.
558+a\textsuperscript{\emph{hello}} a\textsuperscript{hello there}.
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.
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
477\begin{center}\rule{3in}{0.4pt}\end{center}
567\begin{center}\rule{3in}{0.4pt}\end{center}
@@ -486,7 +576,8 @@ These should not be superscripts or subscripts, because of the unescaped spaces:
487`He said, ``I want to go.''\,' Were you alive in the 70's?
577`He said, ``I want to go.''\,' Were you alive in the 70's?
579+Here is some quoted `\verb!code!' and a
489−Here is some quoted `\verb!code!' and a ``\href{http://example.com/?foo=1&bar=2}{quoted link}''.
580+``\href{http://example.com/?foo=1&bar=2}{quoted link}''.
491Some dashes: one---two---three---four---five.
582Some dashes: one---two---three---four---five.
@@ -499,22 +590,36 @@ Ellipses\ldots{}and\ldots{}and\ldots{}.
499\section{LaTeX}
590\section{LaTeX}
501\begin{itemize}
592\begin{itemize}
502−\item \cite[22-23]{smith.1899}
594+ \cite[22-23]{smith.1899}
503−\item \doublespacing
596+ \doublespacing
504−\item $2+2=4$
597+\item
505−\item $x \in y$
599+\item
506−\item $\alpha \wedge \omega$
602+ $\alpha \wedge \omega$
508−\item $p$-Tree
606+ $p$-Tree
509−\item $\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}$
608+ $\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$.
610+ Here's one that has a line break in it:
611+ $\alpha + \omega \times x^2$.
511\end{itemize}
612\end{itemize}
512These shouldn't be math:
613These shouldn't be math:
514\begin{itemize}
615\begin{itemize}
515−\item To get the famous equation, write \verb!$e = mc^2$!.
617+ 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.)
619+ \$22,000 is a \emph{lot} of money. So is \$34,000. (It worked if
620+ ``lot'' is emphasized.)
517−\item Escaped \verb!$!: \$73 \emph{this should be emphasized} 23\$.
622+ Escaped \verb!$!: \$73 \emph{this should be emphasized} 23\$.
518\end{itemize}
623\end{itemize}
519Here's a LaTeX table:
624Here's a LaTeX table:
@@ -531,11 +636,16 @@ Cat & 1 \\ \hline
531Here is some unicode:
636Here is some unicode:
533\begin{itemize}
638\begin{itemize}
534−\item I hat: Î
640+ I hat: Î
535−\item o umlaut: ö
642+ o umlaut: ö
536−\item section: §
644+ section: §
537−\item set membership: ∈
646+ set membership: ∈
538−\item copyright: ©
648+ copyright: ©
539\end{itemize}
649\end{itemize}
540AT\&T has an ampersand in their name.
650AT\&T has an ampersand in their name.
@@ -632,24 +742,31 @@ Foo \href{/url/}{biz}.
633\subsection{With ampersands}
743\subsection{With ampersands}
635−Here's a \href{http://example.com/?foo=1&bar=2}{link with an ampersand in the URL}.
746+\href{http://example.com/?foo=1&bar=2}{link with an ampersand in the URL}.
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}.
639Here's an \href{/script?foo=1&bar=2}{inline link}.
751Here's an \href{/script?foo=1&bar=2}{inline link}.
641−Here's an \href{/script?foo=1&bar=2}{inline link in pointy braces}.
754+\href{/script?foo=1&bar=2}{inline link in pointy braces}.
643\subsection{Autolinks}
756\subsection{Autolinks}
645With an ampersand: \url{http://example.com/?foo=1&bar=2}
758With an ampersand: \url{http://example.com/?foo=1&bar=2}
647\begin{itemize}
760\begin{itemize}
648−\item In a list?
762+ In a list?
649−\item \url{http://example.com/}
764+ \url{http://example.com/}
650−\item It should.
766+ It should.
651\end{itemize}
767\end{itemize}
652−An e-mail address: \href{mailto:nobody@nowhere.net}{\texttt{nobody@nowhere.net}}
769+\href{mailto:nobody@nowhere.net}{\texttt{nobody@nowhere.net}}
654\begin{quote}
771\begin{quote}
655Blockquoted: \url{http://example.com/}
772Blockquoted: \url{http://example.com/}
@@ -674,29 +791,41 @@ Here is a movie \includegraphics{movie.jpg} icon.
675\section{Footnotes}
792\section{Footnotes}
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.
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.
678−} and another.\footnote{Here's the long note. This one contains multiple blocks.
799+another.\footnote{ Here's the long note. This one contains multiple blocks.
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).
682\begin{Verbatim}
804\begin{Verbatim}
683 { <code> }
805 { <code> }
684\end{Verbatim}
806\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.
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.
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].
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].
689\begin{quote}
817\begin{quote}
690−Notes can go in quotes.\footnote{In quote.
818+Notes can go in quotes.\footnote{ In quote.
693\end{quote}
821\end{quote}
694\begin{enumerate}[1.]
822\begin{enumerate}[1.]
695−\item And in list items.\footnote{In list.
824+ And in list items.\footnote{ In list.
697\end{enumerate}
826\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
701\end{document}
831\end{document}