1\PassOptionsToPackage{unicode=true}{hyperref} % options for packages loaded elsewhere
2\PassOptionsToPackage{hyphens}{url}
7\usepackage{amssymb,amsmath}
8\usepackage{ifxetex,ifluatex}
9\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
10 \usepackage[T1]{fontenc}
11 \usepackage[utf8]{inputenc}
12 \usepackage{textcomp} % provides euro and other symbols
13\else % if luatex or xelatex
14 \usepackage{unicode-math}
15 \defaultfontfeatures{Scale=MatchLowercase}
16 \defaultfontfeatures[\rmfamily]{Ligatures=TeX,Scale=1}
18% use upquote if available, for straight quotes in verbatim environments
19\IfFileExists{upquote.sty}{\usepackage{upquote}}{}
20\IfFileExists{microtype.sty}{% use microtype if available
21 \usepackage[]{microtype}
22 \UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts
25\@ifundefined{KOMAClassName}{% if non-KOMA class
26 \IfFileExists{parskip.sty}{%
29 \setlength{\parindent}{0pt}
30 \setlength{\parskip}{6pt plus 2pt minus 1pt}}
32 \KOMAoptions{parskip=half}}
36\IfFileExists{xurl.sty}{\usepackage{xurl}}{} % add URL line breaks if available
37\IfFileExists{bookmark.sty}{\usepackage{bookmark}}{\usepackage{hyperref}}
39 pdftitle={Pandoc Test Suite},
40 pdfauthor={John MacFarlane; Anonymous},
43\urlstyle{same} % don't use monospace font for urls
44\VerbatimFootnotes % allows verbatim text in footnotes
45\usepackage{graphicx,grffile}
47\def\maxwidth{\ifdim\Gin@nat@width>\linewidth\linewidth\else\Gin@nat@width\fi}
48\def\maxheight{\ifdim\Gin@nat@height>\textheight\textheight\else\Gin@nat@height\fi}
50% Scale images if necessary, so that they will not overflow the page
51% margins by default, and it is still possible to overwrite the defaults
52% using explicit options in \includegraphics[width, height, ...]{}
53\setkeys{Gin}{width=\maxwidth,height=\maxheight,keepaspectratio}
54\usepackage[normalem]{ulem}
55% avoid problems with \sout in headers with hyperref:
56\pdfstringdefDisableCommands{\renewcommand{\sout}{}}
57\setlength{\emergencystretch}{3em} % prevent overfull lines
58\providecommand{\tightlist}{%
59 \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
60\setcounter{secnumdepth}{-2}
61% Redefines (sub)paragraphs to behave more like sections
62\ifx\paragraph\undefined\else
63 \let\oldparagraph\paragraph
64 \renewcommand{\paragraph}[1]{\oldparagraph{#1}\mbox{}}
66\ifx\subparagraph\undefined\else
67 \let\oldsubparagraph\subparagraph
68 \renewcommand{\subparagraph}[1]{\oldsubparagraph{#1}\mbox{}}
71% set default figure placement to htbp
77\title{Pandoc Test Suite}
78\author{John MacFarlane \and Anonymous}
84This is a set of tests for pandoc. Most of them are adapted from John Gruber's
87\begin{center}\rule{0.5\linewidth}{\linethickness}\end{center}
89\hypertarget{headers}{%
90\section{Headers}\label{headers}}
92\hypertarget{level-2-with-an-embedded-link}{%
93\subsection{\texorpdfstring{Level 2 with an \href{/url}{embedded
94link}}{Level 2 with an embedded link}}\label{level-2-with-an-embedded-link}}
96\hypertarget{level-3-with-emphasis}{%
97\subsubsection{\texorpdfstring{Level 3 with
98\emph{emphasis}}{Level 3 with emphasis}}\label{level-3-with-emphasis}}
100\hypertarget{level-4}{%
101\paragraph{Level 4}\label{level-4}}
103\hypertarget{level-5}{%
104\subparagraph{Level 5}\label{level-5}}
106\hypertarget{level-1}{%
107\section{Level 1}\label{level-1}}
109\hypertarget{level-2-with-emphasis}{%
110\subsection{\texorpdfstring{Level 2 with
111\emph{emphasis}}{Level 2 with emphasis}}\label{level-2-with-emphasis}}
113\hypertarget{level-3}{%
114\subsubsection{Level 3}\label{level-3}}
118\hypertarget{level-2}{%
119\subsection{Level 2}\label{level-2}}
123\begin{center}\rule{0.5\linewidth}{\linethickness}\end{center}
125\hypertarget{paragraphs}{%
126\section{Paragraphs}\label{paragraphs}}
128Here's a regular paragraph.
130In Markdown 1.0.0 and earlier. Version 8. This line turns into a list item.
131Because a hard-wrapped line in the middle of a paragraph looked like a list
134Here's one with a bullet. * criminey.
136There should be a hard line break\\
139\begin{center}\rule{0.5\linewidth}{\linethickness}\end{center}
141\hypertarget{block-quotes}{%
142\section{Block Quotes}\label{block-quotes}}
147This is a block quote. It is pretty short.
151Code in a block quote:
162\def\labelenumi{\arabic{enumi}.}
181This should not be a block quote: 2 \textgreater{} 1.
183And a following paragraph.
185\begin{center}\rule{0.5\linewidth}{\linethickness}\end{center}
187\hypertarget{code-blocks}{%
188\section{Code Blocks}\label{code-blocks}}
193---- (should be four hyphens)
199this code block is indented by one tab
205 this code block is indented by two tabs
207These should not be escaped: \$ \\ \> \[ \{
210\begin{center}\rule{0.5\linewidth}{\linethickness}\end{center}
213\section{Lists}\label{lists}}
215\hypertarget{unordered}{%
216\subsection{Unordered}\label{unordered}}
287\hypertarget{ordered}{%
288\subsection{Ordered}\label{ordered}}
293\def\labelenumi{\arabic{enumi}.}
306\def\labelenumi{\arabic{enumi}.}
319\def\labelenumi{\arabic{enumi}.}
331\def\labelenumi{\arabic{enumi}.}
343\def\labelenumi{\arabic{enumi}.}
347 Item 1. graf two. The quick brown fox jumped over the lazy dog's back.
354\hypertarget{nested}{%
355\subsection{Nested}\label{nested}}
378\def\labelenumi{\arabic{enumi}.}
398Same thing but with paragraphs:
401\def\labelenumi{\arabic{enumi}.}
420\hypertarget{tabs-and-spaces}{%
421\subsection{Tabs and spaces}\label{tabs-and-spaces}}
425 this is a list item indented with tabs
427 this is a list item indented with spaces
431 this is an example list item indented with tabs
433 this is an example list item indented with spaces
437\hypertarget{fancy-list-markers}{%
438\subsection{Fancy list markers}\label{fancy-list-markers}}
441\def\labelenumi{(\arabic{enumi})}
451 \def\labelenumii{\roman{enumii}.}
452 \setcounter{enumii}{3}
455 sublist with roman numerals, starting with 4
460 \def\labelenumiii{(\Alph{enumiii})}
473\def\labelenumi{\Alph{enumi}.}
479 \def\labelenumii{\Roman{enumii}.}
485 \def\labelenumiii{(\arabic{enumiii})}
486 \setcounter{enumiii}{5}
492 \def\labelenumiv{\alph{enumiv})}
493 \setcounter{enumiv}{2}
496 Lower alpha with paren
518Should not be a list item:
524\begin{center}\rule{0.5\linewidth}{\linethickness}\end{center}
526\hypertarget{definition-lists}{%
527\section{Definition Lists}\label{definition-lists}}
564Multiple blocks with italics:
570contains seeds, crisp, pleasant to taste
583Multiple definitions, tight:
597Multiple definitions, loose:
610Blank line after term, indented marker, alternate markers:
621\def\labelenumi{\arabic{enumi}.}
630\hypertarget{html-blocks}{%
631\section{HTML Blocks}\label{html-blocks}}
633Simple block on one line:
637And nested without indentation:
643Interpreted markdown in a table:
645This is \emph{emphasized}
647And this is \textbf{strong}
649Here's a simple block:
653This should be a code block, though:
671This should just be an HTML comment:
681Just plain comment, with trailing spaces on the line:
691\begin{center}\rule{0.5\linewidth}{\linethickness}\end{center}
693\hypertarget{inline-markup}{%
694\section{Inline Markup}\label{inline-markup}}
696This is \emph{emphasized}, and so \emph{is this}.
698This is \textbf{strong}, and so \textbf{is this}.
700An \emph{\href{/url}{emphasized link}}.
702\textbf{\emph{This is strong and em.}}
704So is \textbf{\emph{this}} word.
706\textbf{\emph{This is strong and em.}}
708So is \textbf{\emph{this}} word.
710This is code: \texttt{\textgreater{}}, \texttt{\$}, \texttt{\textbackslash{}},
711\texttt{\textbackslash{}\$}, \texttt{\textless{}html\textgreater{}}.
713\sout{This is \emph{strikeout}.}
715Superscripts: a\textsuperscript{bc}d a\textsuperscript{\emph{hello}}
716a\textsuperscript{hello~there}.
718Subscripts: H\textsubscript{2}O, H\textsubscript{23}O,
719H\textsubscript{many~of~them}O.
721These should not be superscripts or subscripts, because of the unescaped
722spaces: a\^{}b c\^{}d, a\textasciitilde b c\textasciitilde d.
724\begin{center}\rule{0.5\linewidth}{\linethickness}\end{center}
726\hypertarget{smart-quotes-ellipses-dashes}{%
727\section{Smart quotes, ellipses, dashes}\label{smart-quotes-ellipses-dashes}}
729``Hello,'' said the spider. ``\,`Shelob' is my name.''
731`A', `B', and `C' are letters.
733`Oak,' `elm,' and `beech' are names of trees. So is `pine.'
735`He said, ``I want to go.''\,' Were you alive in the 70's?
737Here is some quoted `\texttt{code}' and a
738``\href{http://example.com/?foo=1\&bar=2}{quoted link}''.
740Some dashes: one---two --- three---four --- five.
742Dashes between numbers: 5--7, 255--66, 1987--1999.
744Ellipses\ldots and\ldots and\ldots.
746\begin{center}\rule{0.5\linewidth}{\linethickness}\end{center}
749\section{LaTeX}\label{latex}}
754 \cite[22-23]{smith.1899}
760 \(\alpha \wedge \omega\)
766 Here's some display math:
767 \[\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}\]
769 Here's one that has a line break in it: \(\alpha + \omega \times x^2\).
772These shouldn't be math:
777 To get the famous equation, write \texttt{\$e\ =\ mc\^{}2\$}.
779 \$22,000 is a \emph{lot} of money. So is \$34,000. (It worked if ``lot'' is
782 Shoes (\$20) and socks (\$5).
784 Escaped \texttt{\$}: \$73 \emph{this should be emphasized} 23\$.
789\begin{tabular}{|l|l|}\hline
790Animal & Number \\ \hline
795\begin{center}\rule{0.5\linewidth}{\linethickness}\end{center}
797\hypertarget{special-characters}{%
798\section{Special Characters}\label{special-characters}}
816AT\&T has an ampersand in their name.
818AT\&T is another way to write it.
826Backslash: \textbackslash{}
846Greater-than: \textgreater{}
858\begin{center}\rule{0.5\linewidth}{\linethickness}\end{center}
861\section{Links}\label{links}}
863\hypertarget{explicit}{%
864\subsection{Explicit}\label{explicit}}
866Just a \href{/url/}{URL}.
868\href{/url/}{URL and title}.
870\href{/url/}{URL and title}.
872\href{/url/}{URL and title}.
874\href{/url/}{URL and title}
876\href{/url/}{URL and title}
878\href{/url/with_underscore}{with\_underscore}
880\href{mailto:nobody@nowhere.net}{Email link}
884\hypertarget{reference}{%
885\subsection{Reference}\label{reference}}
887Foo \href{/url/}{bar}.
889With \href{/url/}{embedded {[}brackets{]}}.
891\href{/url/}{b} by itself should be a link.
893Indented \href{/url}{once}.
895Indented \href{/url}{twice}.
897Indented \href{/url}{thrice}.
899This should {[}not{]}{[}{]} be a link.
905Foo \href{/url/}{bar}.
907Foo \href{/url/}{biz}.
909\hypertarget{with-ampersands}{%
910\subsection{With ampersands}\label{with-ampersands}}
912Here's a \href{http://example.com/?foo=1\&bar=2}{link with an ampersand in the
915Here's a link with an amersand in the link text:
916\href{http://att.com/}{AT\&T}.
918Here's an \href{/script?foo=1\&bar=2}{inline link}.
920Here's an \href{/script?foo=1\&bar=2}{inline link in pointy braces}.
922\hypertarget{autolinks}{%
923\subsection{Autolinks}\label{autolinks}}
925With an ampersand: \url{http://example.com/?foo=1\&bar=2}
932 \url{http://example.com/}
938\href{mailto:nobody@nowhere.net}{\nolinkurl{nobody@nowhere.net}}
941Blockquoted: \url{http://example.com/}
944Auto-links should not occur here:
945\texttt{\textless{}http://example.com/\textgreater{}}
948or here: <http://example.com/>
951\begin{center}\rule{0.5\linewidth}{\linethickness}\end{center}
953\hypertarget{images}{%
954\section{Images}\label{images}}
956From ``Voyage dans la Lune'' by Georges Melies (1902):
960\includegraphics{lalune.jpg}
964Here is a movie \includegraphics{movie.jpg} icon.
966\begin{center}\rule{0.5\linewidth}{\linethickness}\end{center}
968\hypertarget{footnotes}{%
969\section{Footnotes}\label{footnotes}}
971Here is a footnote reference,\footnote{Here is the footnote. It can go
972 anywhere after the footnote reference. It need not be placed at the end of
973 the document.} and another.\footnote{Here's the long note. This one contains
976 Subsequent blocks are indented to show that they belong to the footnote (as
983 If you want, you can indent every line, but you can also be lazy and just
984 indent the first line of each block.} This should \emph{not} be a footnote
985reference, because it contains a space.{[}\^{}my note{]} Here is an inline
986note.\footnote{This is \emph{easier} to type. Inline notes may contain
987 \href{http://google.com}{links} and \texttt{{]}} verbatim characters, as
988 well as {[}bracketed text{]}.}
991Notes can go in quotes.\footnote{In quote.}
995\def\labelenumi{\arabic{enumi}.}
998 And in list items.\footnote{In list.}
1001This 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