1% Options for packages loaded elsewhere
2\PassOptionsToPackage{unicode}{hyperref}
3\PassOptionsToPackage{hyphens}{url}
8\usepackage{amssymb,amsmath}
9\usepackage{ifxetex,ifluatex}
10\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
11 \usepackage[T1]{fontenc}
12 \usepackage[utf8]{inputenc}
13 \usepackage{textcomp} % provide euro and other symbols
14\else % if luatex or xetex
15 \usepackage{unicode-math}
16 \defaultfontfeatures{Scale=MatchLowercase}
17 \defaultfontfeatures[\rmfamily]{Ligatures=TeX,Scale=1}
19% Use upquote if available, for straight quotes in verbatim environments
20\IfFileExists{upquote.sty}{\usepackage{upquote}}{}
21\IfFileExists{microtype.sty}{% use microtype if available
22 \usepackage[]{microtype}
23 \UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts
26\@ifundefined{KOMAClassName}{% if non-KOMA class
27 \IfFileExists{parskip.sty}{%
30 \setlength{\parindent}{0pt}
31 \setlength{\parskip}{6pt plus 2pt minus 1pt}}
33 \KOMAoptions{parskip=half}}
37\IfFileExists{xurl.sty}{\usepackage{xurl}}{} % add URL line breaks if available
38\IfFileExists{bookmark.sty}{\usepackage{bookmark}}{\usepackage{hyperref}}
40 pdftitle={Pandoc Test Suite},
41 pdfauthor={John MacFarlane; Anonymous},
43 pdfcreator={LaTeX via pandoc}}
44\urlstyle{same} % disable monospaced font for URLs
45\VerbatimFootnotes % allow verbatim text in footnotes
48\def\maxwidth{\ifdim\Gin@nat@width>\linewidth\linewidth\else\Gin@nat@width\fi}
49\def\maxheight{\ifdim\Gin@nat@height>\textheight\textheight\else\Gin@nat@height\fi}
51% Scale images if necessary, so that they will not overflow the page
52% margins by default, and it is still possible to overwrite the defaults
53% using explicit options in \includegraphics[width, height, ...]{}
54\setkeys{Gin}{width=\maxwidth,height=\maxheight,keepaspectratio}
55% Set default figure placement to htbp
59\usepackage[normalem]{ulem}
60% Avoid problems with \sout in headers with hyperref
61\pdfstringdefDisableCommands{\renewcommand{\sout}{}}
62\setlength{\emergencystretch}{3em} % prevent overfull lines
63\providecommand{\tightlist}{%
64 \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
65\setcounter{secnumdepth}{-\maxdimen} % remove section numbering
67\title{Pandoc Test Suite}
68\author{John MacFarlane \and Anonymous}
74This is a set of tests for pandoc. Most of them are adapted from John Gruber's
77\begin{center}\rule{0.5\linewidth}{0.5pt}\end{center}
79\hypertarget{headers}{%
80\section{Headers}\label{headers}}
82\hypertarget{level-2-with-an-embedded-link}{%
83\subsection{\texorpdfstring{Level 2 with an \href{/url}{embedded
84link}}{Level 2 with an embedded link}}\label{level-2-with-an-embedded-link}}
86\hypertarget{level-3-with-emphasis}{%
87\subsubsection{\texorpdfstring{Level 3 with
88\emph{emphasis}}{Level 3 with emphasis}}\label{level-3-with-emphasis}}
90\hypertarget{level-4}{%
91\paragraph{Level 4}\label{level-4}}
93\hypertarget{level-5}{%
94\subparagraph{Level 5}\label{level-5}}
96\hypertarget{level-1}{%
97\section{Level 1}\label{level-1}}
99\hypertarget{level-2-with-emphasis}{%
100\subsection{\texorpdfstring{Level 2 with
101\emph{emphasis}}{Level 2 with emphasis}}\label{level-2-with-emphasis}}
103\hypertarget{level-3}{%
104\subsubsection{Level 3}\label{level-3}}
108\hypertarget{level-2}{%
109\subsection{Level 2}\label{level-2}}
113\begin{center}\rule{0.5\linewidth}{0.5pt}\end{center}
115\hypertarget{paragraphs}{%
116\section{Paragraphs}\label{paragraphs}}
118Here's a regular paragraph.
120In Markdown 1.0.0 and earlier. Version 8. This line turns into a list item.
121Because a hard-wrapped line in the middle of a paragraph looked like a list
124Here's one with a bullet. * criminey.
126There should be a hard line break\\
129\begin{center}\rule{0.5\linewidth}{0.5pt}\end{center}
131\hypertarget{block-quotes}{%
132\section{Block Quotes}\label{block-quotes}}
137This is a block quote. It is pretty short.
141Code in a block quote:
152\def\labelenumi{\arabic{enumi}.}
171This should not be a block quote: 2 \textgreater{} 1.
173And a following paragraph.
175\begin{center}\rule{0.5\linewidth}{0.5pt}\end{center}
177\hypertarget{code-blocks}{%
178\section{Code Blocks}\label{code-blocks}}
183---- (should be four hyphens)
189this code block is indented by one tab
195 this code block is indented by two tabs
197These should not be escaped: \$ \\ \> \[ \{
200\begin{center}\rule{0.5\linewidth}{0.5pt}\end{center}
203\section{Lists}\label{lists}}
205\hypertarget{unordered}{%
206\subsection{Unordered}\label{unordered}}
277\hypertarget{ordered}{%
278\subsection{Ordered}\label{ordered}}
283\def\labelenumi{\arabic{enumi}.}
296\def\labelenumi{\arabic{enumi}.}
309\def\labelenumi{\arabic{enumi}.}
321\def\labelenumi{\arabic{enumi}.}
333\def\labelenumi{\arabic{enumi}.}
337 Item 1. graf two. The quick brown fox jumped over the lazy dog's back.
344\hypertarget{nested}{%
345\subsection{Nested}\label{nested}}
368\def\labelenumi{\arabic{enumi}.}
388Same thing but with paragraphs:
391\def\labelenumi{\arabic{enumi}.}
410\hypertarget{tabs-and-spaces}{%
411\subsection{Tabs and spaces}\label{tabs-and-spaces}}
415 this is a list item indented with tabs
417 this is a list item indented with spaces
421 this is an example list item indented with tabs
423 this is an example list item indented with spaces
427\hypertarget{fancy-list-markers}{%
428\subsection{Fancy list markers}\label{fancy-list-markers}}
431\def\labelenumi{(\arabic{enumi})}
441 \def\labelenumii{\roman{enumii}.}
442 \setcounter{enumii}{3}
445 sublist with roman numerals, starting with 4
450 \def\labelenumiii{(\Alph{enumiii})}
463\def\labelenumi{\Alph{enumi}.}
469 \def\labelenumii{\Roman{enumii}.}
475 \def\labelenumiii{(\arabic{enumiii})}
476 \setcounter{enumiii}{5}
482 \def\labelenumiv{\alph{enumiv})}
483 \setcounter{enumiv}{2}
486 Lower alpha with paren
508Should not be a list item:
514\begin{center}\rule{0.5\linewidth}{0.5pt}\end{center}
516\hypertarget{definition-lists}{%
517\section{Definition Lists}\label{definition-lists}}
554Multiple blocks with italics:
560contains seeds, crisp, pleasant to taste
573Multiple definitions, tight:
587Multiple definitions, loose:
600Blank line after term, indented marker, alternate markers:
611\def\labelenumi{\arabic{enumi}.}
620\hypertarget{html-blocks}{%
621\section{HTML Blocks}\label{html-blocks}}
623Simple block on one line:
627And nested without indentation:
633Interpreted markdown in a table:
635This is \emph{emphasized}
637And this is \textbf{strong}
639Here's a simple block:
643This should be a code block, though:
661This should just be an HTML comment:
671Just plain comment, with trailing spaces on the line:
681\begin{center}\rule{0.5\linewidth}{0.5pt}\end{center}
683\hypertarget{inline-markup}{%
684\section{Inline Markup}\label{inline-markup}}
686This is \emph{emphasized}, and so \emph{is this}.
688This is \textbf{strong}, and so \textbf{is this}.
690An \emph{\href{/url}{emphasized link}}.
692\textbf{\emph{This is strong and em.}}
694So is \textbf{\emph{this}} word.
696\textbf{\emph{This is strong and em.}}
698So is \textbf{\emph{this}} word.
700This is code: \texttt{\textgreater{}}, \texttt{\$}, \texttt{\textbackslash{}},
701\texttt{\textbackslash{}\$}, \texttt{\textless{}html\textgreater{}}.
703\sout{This is \emph{strikeout}.}
705Superscripts: a\textsuperscript{bc}d a\textsuperscript{\emph{hello}}
706a\textsuperscript{hello~there}.
708Subscripts: H\textsubscript{2}O, H\textsubscript{23}O,
709H\textsubscript{many~of~them}O.
711These should not be superscripts or subscripts, because of the unescaped
712spaces: a\^{}b c\^{}d, a\textasciitilde b c\textasciitilde d.
714\begin{center}\rule{0.5\linewidth}{0.5pt}\end{center}
716\hypertarget{smart-quotes-ellipses-dashes}{%
717\section{Smart quotes, ellipses, dashes}\label{smart-quotes-ellipses-dashes}}
719``Hello,'' said the spider. ``\,`Shelob' is my name.''
721`A', `B', and `C' are letters.
723`Oak,' `elm,' and `beech' are names of trees. So is `pine.'
725`He said, ``I want to go.''\,' Were you alive in the 70's?
727Here is some quoted `\texttt{code}' and a
728``\href{http://example.com/?foo=1\&bar=2}{quoted link}''.
730Some dashes: one---two --- three---four --- five.
732Dashes between numbers: 5--7, 255--66, 1987--1999.
734Ellipses\ldots and\ldots and\ldots.
736\begin{center}\rule{0.5\linewidth}{0.5pt}\end{center}
739\section{LaTeX}\label{latex}}
744 \cite[22-23]{smith.1899}
750 \(\alpha \wedge \omega\)
756 Here's some display math:
757 \[\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}\]
759 Here's one that has a line break in it: \(\alpha + \omega \times x^2\).
762These shouldn't be math:
767 To get the famous equation, write \texttt{\$e\ =\ mc\^{}2\$}.
769 \$22,000 is a \emph{lot} of money. So is \$34,000. (It worked if ``lot'' is
772 Shoes (\$20) and socks (\$5).
774 Escaped \texttt{\$}: \$73 \emph{this should be emphasized} 23\$.
779\begin{tabular}{|l|l|}\hline
780Animal & Number \\ \hline
785\begin{center}\rule{0.5\linewidth}{0.5pt}\end{center}
787\hypertarget{special-characters}{%
788\section{Special Characters}\label{special-characters}}
806AT\&T has an ampersand in their name.
808AT\&T is another way to write it.
816Backslash: \textbackslash{}
836Greater-than: \textgreater{}
848\begin{center}\rule{0.5\linewidth}{0.5pt}\end{center}
851\section{Links}\label{links}}
853\hypertarget{explicit}{%
854\subsection{Explicit}\label{explicit}}
856Just a \href{/url/}{URL}.
858\href{/url/}{URL and title}.
860\href{/url/}{URL and title}.
862\href{/url/}{URL and title}.
864\href{/url/}{URL and title}
866\href{/url/}{URL and title}
868\href{/url/with_underscore}{with\_underscore}
870\href{mailto:nobody@nowhere.net}{Email link}
874\hypertarget{reference}{%
875\subsection{Reference}\label{reference}}
877Foo \href{/url/}{bar}.
879With \href{/url/}{embedded {[}brackets{]}}.
881\href{/url/}{b} by itself should be a link.
883Indented \href{/url}{once}.
885Indented \href{/url}{twice}.
887Indented \href{/url}{thrice}.
889This should {[}not{]}{[}{]} be a link.
895Foo \href{/url/}{bar}.
897Foo \href{/url/}{biz}.
899\hypertarget{with-ampersands}{%
900\subsection{With ampersands}\label{with-ampersands}}
902Here's a \href{http://example.com/?foo=1\&bar=2}{link with an ampersand in the
905Here's a link with an amersand in the link text:
906\href{http://att.com/}{AT\&T}.
908Here's an \href{/script?foo=1\&bar=2}{inline link}.
910Here's an \href{/script?foo=1\&bar=2}{inline link in pointy braces}.
912\hypertarget{autolinks}{%
913\subsection{Autolinks}\label{autolinks}}
915With an ampersand: \url{http://example.com/?foo=1\&bar=2}
922 \url{http://example.com/}
928\href{mailto:nobody@nowhere.net}{\nolinkurl{nobody@nowhere.net}}
931Blockquoted: \url{http://example.com/}
934Auto-links should not occur here:
935\texttt{\textless{}http://example.com/\textgreater{}}
938or here: <http://example.com/>
941\begin{center}\rule{0.5\linewidth}{0.5pt}\end{center}
943\hypertarget{images}{%
944\section{Images}\label{images}}
946From ``Voyage dans la Lune'' by Georges Melies (1902):
950\includegraphics{lalune.jpg}
954Here is a movie \includegraphics{movie.jpg} icon.
956\begin{center}\rule{0.5\linewidth}{0.5pt}\end{center}
958\hypertarget{footnotes}{%
959\section{Footnotes}\label{footnotes}}
961Here is a footnote reference,\footnote{Here is the footnote. It can go
962 anywhere after the footnote reference. It need not be placed at the end of
963 the document.} and another.\footnote{Here's the long note. This one contains
966 Subsequent blocks are indented to show that they belong to the footnote (as
973 If you want, you can indent every line, but you can also be lazy and just
974 indent the first line of each block.} This should \emph{not} be a footnote
975reference, because it contains a space.{[}\^{}my note{]} Here is an inline
976note.\footnote{This is \emph{easier} to type. Inline notes may contain
977 \href{http://google.com}{links} and \texttt{{]}} verbatim characters, as
978 well as {[}bracketed text{]}.}
981Notes can go in quotes.\footnote{In quote.}
985\def\labelenumi{\arabic{enumi}.}
988 And in list items.\footnote{In list.}
991This paragraph should not be part of the note, as it is not indented.
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