1\documentclass[]{article}
2\usepackage[T1]{fontenc}
4\usepackage{amssymb,amsmath}
5\usepackage{ifxetex,ifluatex}
6\usepackage{fixltx2e} % provides \textsubscript
7% use upquote if available, for straight quotes in verbatim environments
8\IfFileExists{upquote.sty}{\usepackage{upquote}}{}
9\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
10 \usepackage[utf8]{inputenc}
11\else % if luatex or xelatex
14 \usepackage{xltxtra,xunicode}
18 \defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
21% use microtype if available
22\IfFileExists{microtype.sty}{\usepackage{microtype}}{}
25% Redefine \includegraphics so that, unless explicit options are
26% given, the image width will not exceed the width of the page.
27% Images get their normal width if they fit onto the page, but
28% are scaled down if they would overflow the margins.
31 \ifdim\Gin@nat@width>\linewidth
38\let\Oldincludegraphics\includegraphics
41 \gdef\includegraphics{\@ifnextchar[{\Oldincludegraphics}{\Oldincludegraphics[width=\ScaleIfNeeded]}}%
44 \usepackage[setpagesize=false, % page size defined by xetex
45 unicode=false, % unicode breaks when used with xetex
48 \usepackage[unicode=true]{hyperref}
50\hypersetup{breaklinks=true,
52 pdfauthor={John MacFarlane; Anonymous},
53 pdftitle={Pandoc Test Suite},
59\urlstyle{same} % don't use monospace font for urls
60\usepackage[normalem]{ulem}
61% avoid problems with \sout in headers with hyperref:
62\pdfstringdefDisableCommands{\renewcommand{\sout}{}}
63\setlength{\parindent}{0pt}
64\setlength{\parskip}{6pt plus 2pt minus 1pt}
65\setlength{\emergencystretch}{3em} % prevent overfull lines
66\setcounter{secnumdepth}{0}
67\VerbatimFootnotes % allows verbatim text in footnotes
69\title{Pandoc Test Suite}
70\author{John MacFarlane \and Anonymous}
76This is a set of tests for pandoc. Most of them are adapted from John Gruber's
79\begin{center}\rule{3in}{0.4pt}\end{center}
81\section{Headers}\label{headers}
83\subsection{Level 2 with an \href{/url}{embedded
84link}}\label{level-2-with-an-embedded-link}
86\subsubsection{Level 3 with \emph{emphasis}}\label{level-3-with-emphasis}
88\paragraph{Level 4}\label{level-4}
90\subparagraph{Level 5}\label{level-5}
92\section{Level 1}\label{level-1}
94\subsection{Level 2 with \emph{emphasis}}\label{level-2-with-emphasis}
96\subsubsection{Level 3}\label{level-3}
100\subsection{Level 2}\label{level-2}
104\begin{center}\rule{3in}{0.4pt}\end{center}
106\section{Paragraphs}\label{paragraphs}
108Here's a regular paragraph.
110In Markdown 1.0.0 and earlier. Version 8. This line turns into a list item.
111Because a hard-wrapped line in the middle of a paragraph looked like a list
114Here's one with a bullet. * criminey.
116There should be a hard line break\\here.
118\begin{center}\rule{3in}{0.4pt}\end{center}
120\section{Block Quotes}\label{block-quotes}
125This is a block quote. It is pretty short.
129Code in a block quote:
140\def\labelenumi{\arabic{enumi}.}
141\itemsep1pt\parskip0pt\parsep0pt
159This should not be a block quote: 2 \textgreater{} 1.
161And a following paragraph.
163\begin{center}\rule{3in}{0.4pt}\end{center}
165\section{Code Blocks}\label{code-blocks}
170---- (should be four hyphens)
176this code block is indented by one tab
182 this code block is indented by two tabs
184These should not be escaped: \$ \\ \> \[ \{
187\begin{center}\rule{3in}{0.4pt}\end{center}
189\section{Lists}\label{lists}
191\subsection{Unordered}\label{unordered}
196\itemsep1pt\parskip0pt\parsep0pt
219\itemsep1pt\parskip0pt\parsep0pt
242\itemsep1pt\parskip0pt\parsep0pt
262\subsection{Ordered}\label{ordered}
267\def\labelenumi{\arabic{enumi}.}
268\itemsep1pt\parskip0pt\parsep0pt
280\def\labelenumi{\arabic{enumi}.}
281\itemsep1pt\parskip0pt\parsep0pt
293\def\labelenumi{\arabic{enumi}.}
305\def\labelenumi{\arabic{enumi}.}
317\def\labelenumi{\arabic{enumi}.}
321 Item 1. graf two. The quick brown fox jumped over the lazy dog's back.
328\subsection{Nested}\label{nested}
331\itemsep1pt\parskip0pt\parsep0pt
336 \itemsep1pt\parskip0pt\parsep0pt
341 \itemsep1pt\parskip0pt\parsep0pt
351\def\labelenumi{\arabic{enumi}.}
352\itemsep1pt\parskip0pt\parsep0pt
359 \itemsep1pt\parskip0pt\parsep0pt
371Same thing but with paragraphs:
374\def\labelenumi{\arabic{enumi}.}
381 \itemsep1pt\parskip0pt\parsep0pt
393\subsection{Tabs and spaces}\label{tabs-and-spaces}
397 this is a list item indented with tabs
399 this is a list item indented with spaces
403 this is an example list item indented with tabs
405 this is an example list item indented with spaces
409\subsection{Fancy list markers}\label{fancy-list-markers}
412\def\labelenumi{(\arabic{enumi})}
422 \def\labelenumii{\roman{enumii}.}
423 \setcounter{enumii}{3}
424 \itemsep1pt\parskip0pt\parsep0pt
426 sublist with roman numerals, starting with 4
431 \def\labelenumiii{(\Alph{enumiii})}
432 \itemsep1pt\parskip0pt\parsep0pt
444\def\labelenumi{\Alph{enumi}.}
445\itemsep1pt\parskip0pt\parsep0pt
450 \def\labelenumii{\Roman{enumii}.}
451 \itemsep1pt\parskip0pt\parsep0pt
456 \def\labelenumiii{(\arabic{enumiii})}
457 \setcounter{enumiii}{5}
458 \itemsep1pt\parskip0pt\parsep0pt
463 \def\labelenumiv{\alph{enumiv})}
464 \setcounter{enumiv}{2}
465 \itemsep1pt\parskip0pt\parsep0pt
467 Lower alpha with paren
476\itemsep1pt\parskip0pt\parsep0pt
483 \itemsep1pt\parskip0pt\parsep0pt
489Should not be a list item:
495\begin{center}\rule{3in}{0.4pt}\end{center}
497\section{Definition Lists}\label{definition-lists}
502\itemsep1pt\parskip0pt\parsep0pt
514\itemsep1pt\parskip0pt\parsep0pt
534Multiple blocks with italics:
540contains seeds, crisp, pleasant to taste
553Multiple definitions, tight:
556\itemsep1pt\parskip0pt\parsep0pt
567Multiple definitions, loose:
580Blank line after term, indented marker, alternate markers:
591\def\labelenumi{\arabic{enumi}.}
592\itemsep1pt\parskip0pt\parsep0pt
600\section{HTML Blocks}\label{html-blocks}
602Simple block on one line:
606And nested without indentation:
612Interpreted markdown in a table:
614This is \emph{emphasized}
616And this is \textbf{strong}
618Here's a simple block:
622This should be a code block, though:
640This should just be an HTML comment:
650Just plain comment, with trailing spaces on the line:
660\begin{center}\rule{3in}{0.4pt}\end{center}
662\section{Inline Markup}\label{inline-markup}
664This is \emph{emphasized}, and so \emph{is this}.
666This is \textbf{strong}, and so \textbf{is this}.
668An \emph{\href{/url}{emphasized link}}.
670\textbf{\emph{This is strong and em.}}
672So is \textbf{\emph{this}} word.
674\textbf{\emph{This is strong and em.}}
676So is \textbf{\emph{this}} word.
678This is code: \texttt{\textgreater{}}, \texttt{\$}, \texttt{\textbackslash{}},
679\texttt{\textbackslash{}\$}, \texttt{\textless{}html\textgreater{}}.
681\sout{This is \emph{strikeout}.}
683Superscripts: a\textsuperscript{bc}d a\textsuperscript{\emph{hello}}
684a\textsuperscript{hello~there}.
686Subscripts: H\textsubscript{2}O, H\textsubscript{23}O,
687H\textsubscript{many~of~them}O.
689These should not be superscripts or subscripts, because of the unescaped
690spaces: a\^{}b c\^{}d, a\textasciitilde{}b c\textasciitilde{}d.
692\begin{center}\rule{3in}{0.4pt}\end{center}
694\section{Smart quotes, ellipses, dashes}\label{smart-quotes-ellipses-dashes}
696``Hello,'' said the spider. ``\,`Shelob' is my name.''
698`A', `B', and `C' are letters.
700`Oak,' `elm,' and `beech' are names of trees. So is `pine.'
702`He said, ``I want to go.''\,' Were you alive in the 70's?
704Here is some quoted `\texttt{code}' and a
705``\href{http://example.com/?foo=1\&bar=2}{quoted link}''.
707Some dashes: one---two --- three---four --- five.
709Dashes between numbers: 5--7, 255--66, 1987--1999.
711Ellipses\ldots{}and\ldots{}and\ldots{}.
713\begin{center}\rule{3in}{0.4pt}\end{center}
715\section{LaTeX}\label{latex}
718\itemsep1pt\parskip0pt\parsep0pt
720 \cite[22-23]{smith.1899}
726 $\alpha \wedge \omega$
732 Here's some display math:
733 \[\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}\]
735 Here's one that has a line break in it: $\alpha + \omega \times x^2$.
738These shouldn't be math:
741\itemsep1pt\parskip0pt\parsep0pt
743 To get the famous equation, write \texttt{\$e = mc\^{}2\$}.
745 \$22,000 is a \emph{lot} of money. So is \$34,000. (It worked if ``lot'' is
748 Shoes (\$20) and socks (\$5).
750 Escaped \texttt{\$}: \$73 \emph{this should be emphasized} 23\$.
755\begin{tabular}{|l|l|}\hline
756Animal & Number \\ \hline
761\begin{center}\rule{3in}{0.4pt}\end{center}
763\section{Special Characters}\label{special-characters}
768\itemsep1pt\parskip0pt\parsep0pt
781AT\&T has an ampersand in their name.
783AT\&T is another way to write it.
791Backslash: \textbackslash{}
811Greater-than: \textgreater{}
823\begin{center}\rule{3in}{0.4pt}\end{center}
825\section{Links}\label{links}
827\subsection{Explicit}\label{explicit}
829Just a \href{/url/}{URL}.
831\href{/url/}{URL and title}.
833\href{/url/}{URL and title}.
835\href{/url/}{URL and title}.
837\href{/url/}{URL and title}
839\href{/url/}{URL and title}
841\href{/url/with_underscore}{with\_underscore}
843\href{mailto:nobody@nowhere.net}{Email link}
847\subsection{Reference}\label{reference}
849Foo \href{/url/}{bar}.
851Foo \href{/url/}{bar}.
853Foo \href{/url/}{bar}.
855With \href{/url/}{embedded {[}brackets{]}}.
857\href{/url/}{b} by itself should be a link.
859Indented \href{/url}{once}.
861Indented \href{/url}{twice}.
863Indented \href{/url}{thrice}.
865This should {[}not{]}{[}{]} be a link.
871Foo \href{/url/}{bar}.
873Foo \href{/url/}{biz}.
875\subsection{With ampersands}\label{with-ampersands}
877Here's a \href{http://example.com/?foo=1\&bar=2}{link with an ampersand in the
880Here's a link with an amersand in the link text:
881\href{http://att.com/}{AT\&T}.
883Here's an \href{/script?foo=1\&bar=2}{inline link}.
885Here's an \href{/script?foo=1\&bar=2}{inline link in pointy braces}.
887\subsection{Autolinks}\label{autolinks}
889With an ampersand: \url{http://example.com/?foo=1\&bar=2}
892\itemsep1pt\parskip0pt\parsep0pt
896 \url{http://example.com/}
901An e-mail address: \href{mailto:nobody@nowhere.net}{nobody@nowhere.net}
904Blockquoted: \url{http://example.com/}
907Auto-links should not occur here:
908\texttt{\textless{}http://example.com/\textgreater{}}
911or here: <http://example.com/>
914\begin{center}\rule{3in}{0.4pt}\end{center}
916\section{Images}\label{images}
918From ``Voyage dans la Lune'' by Georges Melies (1902):
922\includegraphics{lalune.jpg}
926Here is a movie \includegraphics{movie.jpg} icon.
928\begin{center}\rule{3in}{0.4pt}\end{center}
930\section{Footnotes}\label{footnotes}
932Here is a footnote reference,\footnote{Here is the footnote. It can go
933 anywhere after the footnote reference. It need not be placed at the end of
934 the document.} and another.\footnote{Here's the long note. This one contains
937 Subsequent blocks are indented to show that they belong to the footnote (as
944 If you want, you can indent every line, but you can also be lazy and just
945 indent the first line of each block.} This should \emph{not} be a footnote
946reference, because it contains a space.{[}\^{}my note{]} Here is an inline
947note.\footnote{This is \emph{easier} to type. Inline notes may contain
948 \href{http://google.com}{links} and \texttt{{]}} verbatim characters, as
949 well as {[}bracketed text{]}.}
952Notes can go in quotes.\footnote{In quote.}
956\def\labelenumi{\arabic{enumi}.}
957\itemsep1pt\parskip0pt\parsep0pt
959 And in list items.\footnote{In list.}
962This 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