1% Options for packages loaded elsewhere
2\PassOptionsToPackage{unicode}{hyperref}
3\PassOptionsToPackage{hyphens}{url}
7\usepackage{amsmath,amssymb}
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 \usepackage{selnolig} % disable illegal ligatures
70\title{Pandoc Test Suite}
71\author{John MacFarlane \and Anonymous}
77This is a set of tests for pandoc. Most of them are adapted from John Gruber's
80\begin{center}\rule{0.5\linewidth}{0.5pt}\end{center}
82\hypertarget{headers}{%
83\section{Headers}\label{headers}}
85\hypertarget{level-2-with-an-embedded-link}{%
86\subsection{\texorpdfstring{Level 2 with an \href{/url}{embedded
87link}}{Level 2 with an embedded link}}\label{level-2-with-an-embedded-link}}
89\hypertarget{level-3-with-emphasis}{%
90\subsubsection{\texorpdfstring{Level 3 with
91\emph{emphasis}}{Level 3 with emphasis}}\label{level-3-with-emphasis}}
93\hypertarget{level-4}{%
94\paragraph{Level 4}\label{level-4}}
96\hypertarget{level-5}{%
97\subparagraph{Level 5}\label{level-5}}
99\hypertarget{level-1}{%
100\section{Level 1}\label{level-1}}
102\hypertarget{level-2-with-emphasis}{%
103\subsection{\texorpdfstring{Level 2 with
104\emph{emphasis}}{Level 2 with emphasis}}\label{level-2-with-emphasis}}
106\hypertarget{level-3}{%
107\subsubsection{Level 3}\label{level-3}}
111\hypertarget{level-2}{%
112\subsection{Level 2}\label{level-2}}
116\begin{center}\rule{0.5\linewidth}{0.5pt}\end{center}
118\hypertarget{paragraphs}{%
119\section{Paragraphs}\label{paragraphs}}
121Here's a regular paragraph.
123In Markdown 1.0.0 and earlier. Version 8. This line turns into a list item.
124Because a hard-wrapped line in the middle of a paragraph looked like a list
127Here's one with a bullet. * criminey.
129There should be a hard line break\\
132\begin{center}\rule{0.5\linewidth}{0.5pt}\end{center}
134\hypertarget{block-quotes}{%
135\section{Block Quotes}\label{block-quotes}}
140This is a block quote. It is pretty short.
144Code in a block quote:
155\def\labelenumi{\arabic{enumi}.}
174This should not be a block quote: 2 \textgreater{} 1.
176And a following paragraph.
178\begin{center}\rule{0.5\linewidth}{0.5pt}\end{center}
180\hypertarget{code-blocks}{%
181\section{Code Blocks}\label{code-blocks}}
186---- (should be four hyphens)
192this code block is indented by one tab
198 this code block is indented by two tabs
200These should not be escaped: \$ \\ \> \[ \{
203\begin{center}\rule{0.5\linewidth}{0.5pt}\end{center}
206\section{Lists}\label{lists}}
208\hypertarget{unordered}{%
209\subsection{Unordered}\label{unordered}}
280\hypertarget{ordered}{%
281\subsection{Ordered}\label{ordered}}
286\def\labelenumi{\arabic{enumi}.}
299\def\labelenumi{\arabic{enumi}.}
312\def\labelenumi{\arabic{enumi}.}
324\def\labelenumi{\arabic{enumi}.}
336\def\labelenumi{\arabic{enumi}.}
340 Item 1. graf two. The quick brown fox jumped over the lazy dog's back.
347\hypertarget{nested}{%
348\subsection{Nested}\label{nested}}
371\def\labelenumi{\arabic{enumi}.}
391Same thing but with paragraphs:
394\def\labelenumi{\arabic{enumi}.}
413\hypertarget{tabs-and-spaces}{%
414\subsection{Tabs and spaces}\label{tabs-and-spaces}}
418 this is a list item indented with tabs
420 this is a list item indented with spaces
424 this is an example list item indented with tabs
426 this is an example list item indented with spaces
430\hypertarget{fancy-list-markers}{%
431\subsection{Fancy list markers}\label{fancy-list-markers}}
434\def\labelenumi{(\arabic{enumi})}
444 \def\labelenumii{\roman{enumii}.}
445 \setcounter{enumii}{3}
448 sublist with roman numerals, starting with 4
453 \def\labelenumiii{(\Alph{enumiii})}
466\def\labelenumi{\Alph{enumi}.}
472 \def\labelenumii{\Roman{enumii}.}
478 \def\labelenumiii{(\arabic{enumiii})}
479 \setcounter{enumiii}{5}
485 \def\labelenumiv{\alph{enumiv})}
486 \setcounter{enumiv}{2}
489 Lower alpha with paren
511Should not be a list item:
517\begin{center}\rule{0.5\linewidth}{0.5pt}\end{center}
519\hypertarget{definition-lists}{%
520\section{Definition Lists}\label{definition-lists}}
557Multiple blocks with italics:
563contains seeds, crisp, pleasant to taste
576Multiple definitions, tight:
590Multiple definitions, loose:
603Blank line after term, indented marker, alternate markers:
614\def\labelenumi{\arabic{enumi}.}
623\hypertarget{html-blocks}{%
624\section{HTML Blocks}\label{html-blocks}}
626Simple block on one line:
630And nested without indentation:
636Interpreted markdown in a table:
638This is \emph{emphasized}
640And this is \textbf{strong}
642Here's a simple block:
646This should be a code block, though:
664This should just be an HTML comment:
674Just plain comment, with trailing spaces on the line:
684\begin{center}\rule{0.5\linewidth}{0.5pt}\end{center}
686\hypertarget{inline-markup}{%
687\section{Inline Markup}\label{inline-markup}}
689This is \emph{emphasized}, and so \emph{is this}.
691This is \textbf{strong}, and so \textbf{is this}.
693An \emph{\href{/url}{emphasized link}}.
695\textbf{\emph{This is strong and em.}}
697So is \textbf{\emph{this}} word.
699\textbf{\emph{This is strong and em.}}
701So is \textbf{\emph{this}} word.
703This is code: \texttt{\textgreater{}}, \texttt{\$}, \texttt{\textbackslash{}},
704\texttt{\textbackslash{}\$}, \texttt{\textless{}html\textgreater{}}.
706\sout{This is \emph{strikeout}.}
708Superscripts: a\textsuperscript{bc}d a\textsuperscript{\emph{hello}}
709a\textsuperscript{hello~there}.
711Subscripts: H\textsubscript{2}O, H\textsubscript{23}O,
712H\textsubscript{many~of~them}O.
714These should not be superscripts or subscripts, because of the unescaped
715spaces: a\^{}b c\^{}d, a\textasciitilde b c\textasciitilde d.
717\begin{center}\rule{0.5\linewidth}{0.5pt}\end{center}
719\hypertarget{smart-quotes-ellipses-dashes}{%
720\section{Smart quotes, ellipses, dashes}\label{smart-quotes-ellipses-dashes}}
722``Hello,'' said the spider. ``\,`Shelob' is my name.''
724`A', `B', and `C' are letters.
726`Oak,' `elm,' and `beech' are names of trees. So is `pine.'
728`He said, ``I want to go.''\,' Were you alive in the 70's?
730Here is some quoted `\texttt{code}' and a
731``\href{http://example.com/?foo=1\&bar=2}{quoted link}''.
733Some dashes: one---two --- three---four --- five.
735Dashes between numbers: 5--7, 255--66, 1987--1999.
737Ellipses\ldots and\ldots and\ldots.
739\begin{center}\rule{0.5\linewidth}{0.5pt}\end{center}
742\section{LaTeX}\label{latex}}
747 \cite[22-23]{smith.1899}
753 \(\alpha \wedge \omega\)
759 Here's some display math:
760 \[\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}\]
762 Here's one that has a line break in it: \(\alpha + \omega \times x^2\).
765These shouldn't be math:
770 To get the famous equation, write \texttt{\$e\ =\ mc\^{}2\$}.
772 \$22,000 is a \emph{lot} of money. So is \$34,000. (It worked if ``lot'' is
775 Shoes (\$20) and socks (\$5).
777 Escaped \texttt{\$}: \$73 \emph{this should be emphasized} 23\$.
782\begin{tabular}{|l|l|}\hline
783Animal & Number \\ \hline
788\begin{center}\rule{0.5\linewidth}{0.5pt}\end{center}
790\hypertarget{special-characters}{%
791\section{Special Characters}\label{special-characters}}
809AT\&T has an ampersand in their name.
811AT\&T is another way to write it.
819Backslash: \textbackslash{}
839Greater-than: \textgreater{}
851\begin{center}\rule{0.5\linewidth}{0.5pt}\end{center}
854\section{Links}\label{links}}
856\hypertarget{explicit}{%
857\subsection{Explicit}\label{explicit}}
859Just a \href{/url/}{URL}.
861\href{/url/}{URL and title}.
863\href{/url/}{URL and title}.
865\href{/url/}{URL and title}.
867\href{/url/}{URL and title}
869\href{/url/}{URL and title}
871\href{/url/with_underscore}{with\_underscore}
873\href{mailto:nobody@nowhere.net}{Email link}
877\hypertarget{reference}{%
878\subsection{Reference}\label{reference}}
880Foo \href{/url/}{bar}.
882With \href{/url/}{embedded {[}brackets{]}}.
884\href{/url/}{b} by itself should be a link.
886Indented \href{/url}{once}.
888Indented \href{/url}{twice}.
890Indented \href{/url}{thrice}.
892This should {[}not{]}{[}{]} be a link.
898Foo \href{/url/}{bar}.
900Foo \href{/url/}{biz}.
902\hypertarget{with-ampersands}{%
903\subsection{With ampersands}\label{with-ampersands}}
905Here's a \href{http://example.com/?foo=1\&bar=2}{link with an ampersand in the
908Here's a link with an amersand in the link text:
909\href{http://att.com/}{AT\&T}.
911Here's an \href{/script?foo=1\&bar=2}{inline link}.
913Here's an \href{/script?foo=1\&bar=2}{inline link in pointy braces}.
915\hypertarget{autolinks}{%
916\subsection{Autolinks}\label{autolinks}}
918With an ampersand: \url{http://example.com/?foo=1\&bar=2}
925 \url{http://example.com/}
931\href{mailto:nobody@nowhere.net}{\nolinkurl{nobody@nowhere.net}}
934Blockquoted: \url{http://example.com/}
937Auto-links should not occur here:
938\texttt{\textless{}http://example.com/\textgreater{}}
941or here: <http://example.com/>
944\begin{center}\rule{0.5\linewidth}{0.5pt}\end{center}
946\hypertarget{images}{%
947\section{Images}\label{images}}
949From ``Voyage dans la Lune'' by Georges Melies (1902):
953\includegraphics{lalune.jpg}
957Here is a movie \includegraphics{movie.jpg} icon.
959\begin{center}\rule{0.5\linewidth}{0.5pt}\end{center}
961\hypertarget{footnotes}{%
962\section{Footnotes}\label{footnotes}}
964Here is a footnote reference,\footnote{Here is the footnote. It can go
965 anywhere after the footnote reference. It need not be placed at the end of
966 the document.} and another.\footnote{Here's the long note. This one contains
969 Subsequent blocks are indented to show that they belong to the footnote (as
976 If you want, you can indent every line, but you can also be lazy and just
977 indent the first line of each block.} This should \emph{not} be a footnote
978reference, because it contains a space.{[}\^{}my note{]} Here is an inline
979note.\footnote{This is \emph{easier} to type. Inline notes may contain
980 \href{http://google.com}{links} and \texttt{{]}} verbatim characters, as
981 well as {[}bracketed text{]}.}
984Notes can go in quotes.\footnote{In quote.}
988\def\labelenumi{\arabic{enumi}.}
991 And in list items.\footnote{In list.}
994This 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