2\usepackage[utf8x]{inputenc}
5\usepackage[normalem]{ulem}
10\VerbatimFootnotes % allows verbatim text in footnotes
12\title{Pandoc Test Suite}
13\author{John MacFarlane \and Anonymous}
19This is a set of tests for pandoc. Most of them are adapted from
20John Gruber's markdown test suite.
22\begin{center}\rule{3in}{0.4pt}\end{center}
26\subsection{Level 2 with an \href{/url}{embedded link}}
28\subsubsection{Level 3 with \emph{emphasis}}
34\section[alt title ignored]{Level 1}
36\subsection{Level 2 with \emph{emphasis}}
38\subsubsection{Level 3}
46\begin{center}\rule{3in}{0.4pt}\end{center}
50Here's a regular paragraph.
52In Markdown 1.0.0 and earlier. Version 8. This line turns into a
53list item. Because a hard-wrapped line in the middle of a paragraph
54looked like a list item.
56Here's one with a bullet. * criminey.
58There should be a hard line break\\here.
60\begin{center}\rule{3in}{0.4pt}\end{center}
67This is a block quote. It is pretty short.
97This should not be a block quote: 2 \textgreater{} 1.
128And a following paragraph.
130\begin{center}\rule{3in}{0.4pt}\end{center}
137---- (should be four hyphens)
143this code block is indented by one tab
148 this code block is indented by two tabs
150These should not be escaped: \$ \\ \> \[ \{
157\begin{center}\rule{3in}{0.4pt}\end{center}
161\subsection{Unordered}
286 Item 1. graf two. The quick brown fox jumped over the lazy dog's
328Same thing but with paragraphs:
349\subsection{Tabs and spaces}
353 this is a list item indented with tabs
356 this is a list item indented with spaces
360 this is an example list item indented with tabs
363 this is an example list item indented with spaces
367\subsection{Fancy list markers}
369\begin{enumerate}[(1)]
378 \begin{enumerate}[i.]
379 \setcounter{enumii}{3}
381 sublist with roman numerals, starting with 4
384 \begin{enumerate}[(A)]
397 \begin{enumerate}[I.]
400 \begin{enumerate}[(1)]
401 \setcounter{enumiii}{5}
404 \begin{enumerate}[a)]
405 \setcounter{enumiv}{2}
407 Lower alpha with paren
424Should not be a list item:
430\begin{center}\rule{3in}{0.4pt}\end{center}
432\section{Definition Lists}
467Multiple blocks with italics:
473contains seeds, crisp, pleasant to taste
488Simple block on one line:
491And nested without indentation:
495Interpreted markdown in a table:
497This is \emph{emphasized}
498And this is \textbf{strong}
499Here's a simple block:
502This should be a code block, though:
517This should just be an HTML comment:
526Just plain comment, with trailing spaces on the line:
535\begin{center}\rule{3in}{0.4pt}\end{center}
537\section{Inline Markup}
539This is \emph{emphasized}, and so \emph{is this}.
541This is \textbf{strong}, and so \textbf{is this}.
543An \emph{\href{/url}{emphasized link}}.
545\textbf{\emph{This is strong and em.}}
547So is \textbf{\emph{this}} word.
549\textbf{\emph{This is strong and em.}}
551So is \textbf{\emph{this}} word.
553This is code: \verb!>!, \verb!$!, \verb!\!, \verb!\$!,
556\sout{This is \emph{strikeout}.}
558Superscripts: a\textsuperscript{bc}d
559a\textsuperscript{\emph{hello}} a\textsuperscript{hello there}.
561Subscripts: H\textsubscript{2}O, H\textsubscript{23}O,
562H\textsubscript{many of them}O.
564These should not be superscripts or subscripts, because of the
565unescaped spaces: a\^{}b c\^{}d, a\ensuremath{\sim}b
568\begin{center}\rule{3in}{0.4pt}\end{center}
570\section{Smart quotes, ellipses, dashes}
572``Hello,'' said the spider. ``\,`Shelob' is my name.''
574`A', `B', and `C' are letters.
576`Oak,' `elm,' and `beech' are names of trees. So is `pine.'
578`He said, ``I want to go.''\,' Were you alive in the 70's?
580Here is some quoted `\verb!code!' and a
581``\href{http://example.com/?foo=1&bar=2}{quoted link}''.
583Some dashes: one---two---three---four---five.
585Dashes between numbers: 5--7, 255--66, 1987--1999.
587Ellipses\ldots{}and\ldots{}and\ldots{}.
589\begin{center}\rule{3in}{0.4pt}\end{center}
595 \cite[22-23]{smith.1899}
603 $\alpha \wedge \omega$
609 $\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}$
611 Here's one that has a line break in it:
612 $\alpha + \omega \times x^2$.
614These shouldn't be math:
618 To get the famous equation, write \verb!$e = mc^2$!.
620 \$22,000 is a \emph{lot} of money. So is \$34,000. (It worked if
621 ``lot'' is emphasized.)
623 Escaped \verb!$!: \$73 \emph{this should be emphasized} 23\$.
627\begin{tabular}{|l|l|}\hline
628Animal & Number \\ \hline
633A table with one column:
640\begin{center}\rule{3in}{0.4pt}\end{center}
642\section{Special Characters}
658AT\&T has an ampersand in their name.
660AT\&T is another way to write it.
668Backslash: \textbackslash{}
688Greater-than: \textgreater{}
700\begin{center}\rule{3in}{0.4pt}\end{center}
706Just a \href{/url/}{URL}.
708\href{/url/}{URL and title}.
710\href{/url/}{URL and title}.
712\href{/url/}{URL and title}.
714\href{/url/}{URL and title}
716\href{/url/}{URL and title}
718\href{/url/with_underscore}{with\_underscore}
720\href{mailto:nobody@nowhere.net}{Email link}
724\subsection{Reference}
726Foo \href{/url/}{bar}.
728Foo \href{/url/}{bar}.
730Foo \href{/url/}{bar}.
732With \href{/url/}{embedded [brackets]}.
734\href{/url/}{b} by itself should be a link.
736Indented \href{/url}{once}.
738Indented \href{/url}{twice}.
740Indented \href{/url}{thrice}.
742This should [not][] be a link.
747Foo \href{/url/}{bar}.
749Foo \href{/url/}{biz}.
751\subsection{With ampersands}
754\href{http://example.com/?foo=1&bar=2}{link with an ampersand in the URL}.
756Here's a link with an amersand in the link text:
757\href{http://att.com/}{AT\&T}.
759Here's an \href{/script?foo=1&bar=2}{inline link}.
762\href{/script?foo=1&bar=2}{inline link in pointy braces}.
764\subsection{Autolinks}
766With an ampersand: \url{http://example.com/?foo=1&bar=2}
772 \url{http://example.com/}
777\href{mailto:nobody@nowhere.net}{nobody@nowhere.net}
780Blockquoted: \url{http://example.com/}
783Auto-links should not occur here: \verb!<http://example.com/>!
786or here: <http://example.com/>
788\begin{center}\rule{3in}{0.4pt}\end{center}
792From ``Voyage dans la Lune'' by Georges Melies (1902):
794\includegraphics{lalune.jpg}
796Here is a movie \includegraphics{movie.jpg} icon.
798\begin{center}\rule{3in}{0.4pt}\end{center}
803reference,\footnote{ Here is the footnote. It can go anywhere after the footnote
804reference. It need not be placed at the end of the document.
807another.\footnote{ Here's the long note. This one contains multiple blocks.
809Subsequent blocks are indented to show that they belong to the
810footnote (as with list items).
815If you want, you can indent every line, but you can also be lazy
816and just indent the first line of each block.
818This should \emph{not} be a footnote reference, because it contains
819a space.[\^{}my note] Here is an inline
820note.\footnote{ This is \emph{easier} to type. Inline notes may contain
821\href{http://google.com}{links} and \verb!]! verbatim characters,
822as well as [bracketed text].
826Notes can go in quotes.\footnote{ In quote.
832 And in list items.\footnote{ In list.
835This paragraph should not be part of the note, as it is not
838\section{Escaped characters}
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list