1\PassOptionsToPackage{unicode=true}{hyperref} % options for packages loaded elsewhere
2\PassOptionsToPackage{hyphens}{url}
4\documentclass[]{article}
6\usepackage{amssymb,amsmath}
7\usepackage{ifxetex,ifluatex}
8\usepackage{fixltx2e} % provides \textsubscript
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{Ligatures=TeX,Scale=MatchLowercase}
17% use upquote if available, for straight quotes in verbatim environments
18\IfFileExists{upquote.sty}{\usepackage{upquote}}{}
19% use microtype if available
20\IfFileExists{microtype.sty}{%
21\usepackage[]{microtype}
22\UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts
24\IfFileExists{parskip.sty}{%
27\setlength{\parindent}{0pt}
28\setlength{\parskip}{6pt plus 2pt minus 1pt}
33 pdftitle={Pandoc Test Suite},
34 pdfauthor={John MacFarlane; Anonymous},
37\urlstyle{same} % don't use monospace font for urls
38\VerbatimFootnotes % allows verbatim text in footnotes
39\usepackage{graphicx,grffile}
41\def\maxwidth{\ifdim\Gin@nat@width>\linewidth\linewidth\else\Gin@nat@width\fi}
42\def\maxheight{\ifdim\Gin@nat@height>\textheight\textheight\else\Gin@nat@height\fi}
44% Scale images if necessary, so that they will not overflow the page
45% margins by default, and it is still possible to overwrite the defaults
46% using explicit options in \includegraphics[width, height, ...]{}
47\setkeys{Gin}{width=\maxwidth,height=\maxheight,keepaspectratio}
48\usepackage[normalem]{ulem}
49% avoid problems with \sout in headers with hyperref:
50\pdfstringdefDisableCommands{\renewcommand{\sout}{}}
51\setlength{\emergencystretch}{3em} % prevent overfull lines
52\providecommand{\tightlist}{%
53 \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
54\setcounter{secnumdepth}{0}
55% Redefines (sub)paragraphs to behave more like sections
56\ifx\paragraph\undefined\else
57\let\oldparagraph\paragraph
58\renewcommand{\paragraph}[1]{\oldparagraph{#1}\mbox{}}
60\ifx\subparagraph\undefined\else
61\let\oldsubparagraph\subparagraph
62\renewcommand{\subparagraph}[1]{\oldsubparagraph{#1}\mbox{}}
65% set default figure placement to htbp
71\title{Pandoc Test Suite}
72\author{John MacFarlane \and Anonymous}
78This is a set of tests for pandoc. Most of them are adapted from John Gruber's
81\begin{center}\rule{0.5\linewidth}{\linethickness}\end{center}
83\hypertarget{headers}{%
84\section{Headers}\label{headers}}
86\hypertarget{level-2-with-an-embedded-link}{%
87\subsection{\texorpdfstring{Level 2 with an \href{/url}{embedded
88link}}{Level 2 with an embedded link}}\label{level-2-with-an-embedded-link}}
90\hypertarget{level-3-with-emphasis}{%
91\subsubsection{\texorpdfstring{Level 3 with
92\emph{emphasis}}{Level 3 with emphasis}}\label{level-3-with-emphasis}}
94\hypertarget{level-4}{%
95\paragraph{Level 4}\label{level-4}}
97\hypertarget{level-5}{%
98\subparagraph{Level 5}\label{level-5}}
100\hypertarget{level-1}{%
101\section{Level 1}\label{level-1}}
103\hypertarget{level-2-with-emphasis}{%
104\subsection{\texorpdfstring{Level 2 with
105\emph{emphasis}}{Level 2 with emphasis}}\label{level-2-with-emphasis}}
107\hypertarget{level-3}{%
108\subsubsection{Level 3}\label{level-3}}
112\hypertarget{level-2}{%
113\subsection{Level 2}\label{level-2}}
117\begin{center}\rule{0.5\linewidth}{\linethickness}\end{center}
119\hypertarget{paragraphs}{%
120\section{Paragraphs}\label{paragraphs}}
122Here's a regular paragraph.
124In Markdown 1.0.0 and earlier. Version 8. This line turns into a list item.
125Because a hard-wrapped line in the middle of a paragraph looked like a list
128Here's one with a bullet. * criminey.
130There should be a hard line break\\
133\begin{center}\rule{0.5\linewidth}{\linethickness}\end{center}
135\hypertarget{block-quotes}{%
136\section{Block Quotes}\label{block-quotes}}
141This is a block quote. It is pretty short.
145Code in a block quote:
156\def\labelenumi{\arabic{enumi}.}
175This should not be a block quote: 2 \textgreater{} 1.
177And a following paragraph.
179\begin{center}\rule{0.5\linewidth}{\linethickness}\end{center}
181\hypertarget{code-blocks}{%
182\section{Code Blocks}\label{code-blocks}}
187---- (should be four hyphens)
193this code block is indented by one tab
199 this code block is indented by two tabs
201These should not be escaped: \$ \\ \> \[ \{
204\begin{center}\rule{0.5\linewidth}{\linethickness}\end{center}
207\section{Lists}\label{lists}}
209\hypertarget{unordered}{%
210\subsection{Unordered}\label{unordered}}
281\hypertarget{ordered}{%
282\subsection{Ordered}\label{ordered}}
287\def\labelenumi{\arabic{enumi}.}
300\def\labelenumi{\arabic{enumi}.}
313\def\labelenumi{\arabic{enumi}.}
325\def\labelenumi{\arabic{enumi}.}
337\def\labelenumi{\arabic{enumi}.}
341 Item 1. graf two. The quick brown fox jumped over the lazy dog's back.
348\hypertarget{nested}{%
349\subsection{Nested}\label{nested}}
372\def\labelenumi{\arabic{enumi}.}
392Same thing but with paragraphs:
395\def\labelenumi{\arabic{enumi}.}
414\hypertarget{tabs-and-spaces}{%
415\subsection{Tabs and spaces}\label{tabs-and-spaces}}
419 this is a list item indented with tabs
421 this is a list item indented with spaces
425 this is an example list item indented with tabs
427 this is an example list item indented with spaces
431\hypertarget{fancy-list-markers}{%
432\subsection{Fancy list markers}\label{fancy-list-markers}}
435\def\labelenumi{(\arabic{enumi})}
445 \def\labelenumii{\roman{enumii}.}
446 \setcounter{enumii}{3}
449 sublist with roman numerals, starting with 4
454 \def\labelenumiii{(\Alph{enumiii})}
467\def\labelenumi{\Alph{enumi}.}
473 \def\labelenumii{\Roman{enumii}.}
479 \def\labelenumiii{(\arabic{enumiii})}
480 \setcounter{enumiii}{5}
486 \def\labelenumiv{\alph{enumiv})}
487 \setcounter{enumiv}{2}
490 Lower alpha with paren
512Should not be a list item:
518\begin{center}\rule{0.5\linewidth}{\linethickness}\end{center}
520\hypertarget{definition-lists}{%
521\section{Definition Lists}\label{definition-lists}}
558Multiple blocks with italics:
564contains seeds, crisp, pleasant to taste
577Multiple definitions, tight:
591Multiple definitions, loose:
604Blank line after term, indented marker, alternate markers:
615\def\labelenumi{\arabic{enumi}.}
624\hypertarget{html-blocks}{%
625\section{HTML Blocks}\label{html-blocks}}
627Simple block on one line:
631And nested without indentation:
637Interpreted markdown in a table:
639This is \emph{emphasized}
641And this is \textbf{strong}
643Here's a simple block:
647This should be a code block, though:
665This should just be an HTML comment:
675Just plain comment, with trailing spaces on the line:
685\begin{center}\rule{0.5\linewidth}{\linethickness}\end{center}
687\hypertarget{inline-markup}{%
688\section{Inline Markup}\label{inline-markup}}
690This is \emph{emphasized}, and so \emph{is this}.
692This is \textbf{strong}, and so \textbf{is this}.
694An \emph{\href{/url}{emphasized link}}.
696\textbf{\emph{This is strong and em.}}
698So is \textbf{\emph{this}} word.
700\textbf{\emph{This is strong and em.}}
702So is \textbf{\emph{this}} word.
704This is code: \texttt{\textgreater{}}, \texttt{\$}, \texttt{\textbackslash{}},
705\texttt{\textbackslash{}\$}, \texttt{\textless{}html\textgreater{}}.
707\sout{This is \emph{strikeout}.}
709Superscripts: a\textsuperscript{bc}d a\textsuperscript{\emph{hello}}
710a\textsuperscript{hello~there}.
712Subscripts: H\textsubscript{2}O, H\textsubscript{23}O,
713H\textsubscript{many~of~them}O.
715These should not be superscripts or subscripts, because of the unescaped
716spaces: a\^{}b c\^{}d, a\textasciitilde{}b c\textasciitilde{}d.
718\begin{center}\rule{0.5\linewidth}{\linethickness}\end{center}
720\hypertarget{smart-quotes-ellipses-dashes}{%
721\section{Smart quotes, ellipses, dashes}\label{smart-quotes-ellipses-dashes}}
723``Hello,'' said the spider. ``\,`Shelob' is my name.''
725`A', `B', and `C' are letters.
727`Oak,' `elm,' and `beech' are names of trees. So is `pine.'
729`He said, ``I want to go.''\,' Were you alive in the 70's?
731Here is some quoted `\texttt{code}' and a
732``\href{http://example.com/?foo=1\&bar=2}{quoted link}''.
734Some dashes: one---two --- three---four --- five.
736Dashes between numbers: 5--7, 255--66, 1987--1999.
738Ellipses\ldots{}and\ldots{}and\ldots{}.
740\begin{center}\rule{0.5\linewidth}{\linethickness}\end{center}
743\section{LaTeX}\label{latex}}
748 \cite[22-23]{smith.1899}
754 \(\alpha \wedge \omega\)
760 Here's some display math:
761 \[\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}\]
763 Here's one that has a line break in it: \(\alpha + \omega \times x^2\).
766These shouldn't be math:
771 To get the famous equation, write \texttt{\$e\ =\ mc\^{}2\$}.
773 \$22,000 is a \emph{lot} of money. So is \$34,000. (It worked if ``lot'' is
776 Shoes (\$20) and socks (\$5).
778 Escaped \texttt{\$}: \$73 \emph{this should be emphasized} 23\$.
783\begin{tabular}{|l|l|}\hline
784Animal & Number \\ \hline
789\begin{center}\rule{0.5\linewidth}{\linethickness}\end{center}
791\hypertarget{special-characters}{%
792\section{Special Characters}\label{special-characters}}
810AT\&T has an ampersand in their name.
812AT\&T is another way to write it.
820Backslash: \textbackslash{}
840Greater-than: \textgreater{}
852\begin{center}\rule{0.5\linewidth}{\linethickness}\end{center}
855\section{Links}\label{links}}
857\hypertarget{explicit}{%
858\subsection{Explicit}\label{explicit}}
860Just a \href{/url/}{URL}.
862\href{/url/}{URL and title}.
864\href{/url/}{URL and title}.
866\href{/url/}{URL and title}.
868\href{/url/}{URL and title}
870\href{/url/}{URL and title}
872\href{/url/with_underscore}{with\_underscore}
874\href{mailto:nobody@nowhere.net}{Email link}
878\hypertarget{reference}{%
879\subsection{Reference}\label{reference}}
881Foo \href{/url/}{bar}.
883With \href{/url/}{embedded {[}brackets{]}}.
885\href{/url/}{b} by itself should be a link.
887Indented \href{/url}{once}.
889Indented \href{/url}{twice}.
891Indented \href{/url}{thrice}.
893This should {[}not{]}{[}{]} be a link.
899Foo \href{/url/}{bar}.
901Foo \href{/url/}{biz}.
903\hypertarget{with-ampersands}{%
904\subsection{With ampersands}\label{with-ampersands}}
906Here's a \href{http://example.com/?foo=1\&bar=2}{link with an ampersand in the
909Here's a link with an amersand in the link text:
910\href{http://att.com/}{AT\&T}.
912Here's an \href{/script?foo=1\&bar=2}{inline link}.
914Here's an \href{/script?foo=1\&bar=2}{inline link in pointy braces}.
916\hypertarget{autolinks}{%
917\subsection{Autolinks}\label{autolinks}}
919With an ampersand: \url{http://example.com/?foo=1\&bar=2}
926 \url{http://example.com/}
932\href{mailto:nobody@nowhere.net}{\nolinkurl{nobody@nowhere.net}}
935Blockquoted: \url{http://example.com/}
938Auto-links should not occur here:
939\texttt{\textless{}http://example.com/\textgreater{}}
942or here: <http://example.com/>
945\begin{center}\rule{0.5\linewidth}{\linethickness}\end{center}
947\hypertarget{images}{%
948\section{Images}\label{images}}
950From ``Voyage dans la Lune'' by Georges Melies (1902):
954\includegraphics{lalune.jpg}
958Here is a movie \includegraphics{movie.jpg} icon.
960\begin{center}\rule{0.5\linewidth}{\linethickness}\end{center}
962\hypertarget{footnotes}{%
963\section{Footnotes}\label{footnotes}}
965Here is a footnote reference,\footnote{Here is the footnote. It can go
966 anywhere after the footnote reference. It need not be placed at the end of
967 the document.} and another.\footnote{Here's the long note. This one contains
970 Subsequent blocks are indented to show that they belong to the footnote (as
977 If you want, you can indent every line, but you can also be lazy and just
978 indent the first line of each block.} This should \emph{not} be a footnote
979reference, because it contains a space.{[}\^{}my note{]} Here is an inline
980note.\footnote{This is \emph{easier} to type. Inline notes may contain
981 \href{http://google.com}{links} and \texttt{{]}} verbatim characters, as
982 well as {[}bracketed text{]}.}
985Notes can go in quotes.\footnote{In quote.}
989\def\labelenumi{\arabic{enumi}.}
992 And in list items.\footnote{In list.}
995This 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