1\documentclass[]{article}
3\usepackage{amssymb,amsmath}
4\usepackage{ifxetex,ifluatex}
5\usepackage{fixltx2e} % provides \textsubscript
6\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
7 \usepackage[T1]{fontenc}
8 \usepackage[utf8]{inputenc}
9\else % if luatex or xelatex
12 \usepackage{xltxtra,xunicode}
16 \defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
19% use upquote if available, for straight quotes in verbatim environments
20\IfFileExists{upquote.sty}{\usepackage{upquote}}{}
21% use microtype if available
22\IfFileExists{microtype.sty}{%
24\UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts
27 \usepackage[setpagesize=false, % page size defined by xetex
28 unicode=false, % unicode breaks when used with xetex
31 \usepackage[unicode=true]{hyperref}
33\usepackage[usenames,dvipsnames]{color}
34\hypersetup{breaklinks=true,
36 pdfauthor={John MacFarlane; Anonymous},
37 pdftitle={Pandoc Test Suite},
43\urlstyle{same} % don't use monospace font for urls
46\usepackage{graphicx,grffile}
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\usepackage[normalem]{ulem}
56% avoid problems with \sout in headers with hyperref:
57\pdfstringdefDisableCommands{\renewcommand{\sout}{}}
58\setlength{\parindent}{0pt}
59\setlength{\parskip}{6pt plus 2pt minus 1pt}
60\setlength{\emergencystretch}{3em} % prevent overfull lines
61\providecommand{\tightlist}{%
62 \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
63\setcounter{secnumdepth}{0}
64\VerbatimFootnotes % allows verbatim text in footnotes
66\title{Pandoc Test Suite}
67\author{John MacFarlane \and Anonymous}
70% Redefines (sub)paragraphs to behave more like sections
71\ifx\paragraph\undefined\else
72\let\oldparagraph\paragraph
73\renewcommand{\paragraph}[1]{\oldparagraph{#1}\mbox{}}
75\ifx\subparagraph\undefined\else
76\let\oldsubparagraph\subparagraph
77\renewcommand{\subparagraph}[1]{\oldsubparagraph{#1}\mbox{}}
83This is a set of tests for pandoc. Most of them are adapted from John Gruber's
86\begin{center}\rule{0.5\linewidth}{\linethickness}\end{center}
88\section{Headers}\label{headers}
90\subsection{\texorpdfstring{Level 2 with an \href{/url}{embedded
91link}}{Level 2 with an embedded link}}\label{level-2-with-an-embedded-link}
93\subsubsection{\texorpdfstring{Level 3 with
94\emph{emphasis}}{Level 3 with emphasis}}\label{level-3-with-emphasis}
96\paragraph{Level 4}\label{level-4}
98\subparagraph{Level 5}\label{level-5}
100\section{Level 1}\label{level-1}
102\subsection{\texorpdfstring{Level 2 with
103\emph{emphasis}}{Level 2 with emphasis}}\label{level-2-with-emphasis}
105\subsubsection{Level 3}\label{level-3}
109\subsection{Level 2}\label{level-2}
113\begin{center}\rule{0.5\linewidth}{\linethickness}\end{center}
115\section{Paragraphs}\label{paragraphs}
117Here's a regular paragraph.
119In Markdown 1.0.0 and earlier. Version 8. This line turns into a list item.
120Because a hard-wrapped line in the middle of a paragraph looked like a list
123Here's one with a bullet. * criminey.
125There should be a hard line break\\
128\begin{center}\rule{0.5\linewidth}{\linethickness}\end{center}
130\section{Block Quotes}\label{block-quotes}
135This is a block quote. It is pretty short.
139Code in a block quote:
150\def\labelenumi{\arabic{enumi}.}
169This should not be a block quote: 2 \textgreater{} 1.
171And a following paragraph.
173\begin{center}\rule{0.5\linewidth}{\linethickness}\end{center}
175\section{Code Blocks}\label{code-blocks}
180---- (should be four hyphens)
186this code block is indented by one tab
192 this code block is indented by two tabs
194These should not be escaped: \$ \\ \> \[ \{
197\begin{center}\rule{0.5\linewidth}{\linethickness}\end{center}
199\section{Lists}\label{lists}
201\subsection{Unordered}\label{unordered}
272\subsection{Ordered}\label{ordered}
277\def\labelenumi{\arabic{enumi}.}
290\def\labelenumi{\arabic{enumi}.}
303\def\labelenumi{\arabic{enumi}.}
315\def\labelenumi{\arabic{enumi}.}
327\def\labelenumi{\arabic{enumi}.}
331 Item 1. graf two. The quick brown fox jumped over the lazy dog's back.
338\subsection{Nested}\label{nested}
361\def\labelenumi{\arabic{enumi}.}
381Same thing but with paragraphs:
384\def\labelenumi{\arabic{enumi}.}
403\subsection{Tabs and spaces}\label{tabs-and-spaces}
407 this is a list item indented with tabs
409 this is a list item indented with spaces
413 this is an example list item indented with tabs
415 this is an example list item indented with spaces
419\subsection{Fancy list markers}\label{fancy-list-markers}
422\def\labelenumi{(\arabic{enumi})}
432 \def\labelenumii{\roman{enumii}.}
433 \setcounter{enumii}{3}
436 sublist with roman numerals, starting with 4
441 \def\labelenumiii{(\Alph{enumiii})}
454\def\labelenumi{\Alph{enumi}.}
460 \def\labelenumii{\Roman{enumii}.}
466 \def\labelenumiii{(\arabic{enumiii})}
467 \setcounter{enumiii}{5}
473 \def\labelenumiv{\alph{enumiv})}
474 \setcounter{enumiv}{2}
477 Lower alpha with paren
499Should not be a list item:
505\begin{center}\rule{0.5\linewidth}{\linethickness}\end{center}
507\section{Definition Lists}\label{definition-lists}
544Multiple blocks with italics:
550contains seeds, crisp, pleasant to taste
563Multiple definitions, tight:
577Multiple definitions, loose:
590Blank line after term, indented marker, alternate markers:
601\def\labelenumi{\arabic{enumi}.}
610\section{HTML Blocks}\label{html-blocks}
612Simple block on one line:
616And nested without indentation:
622Interpreted markdown in a table:
624This is \emph{emphasized}
626And this is \textbf{strong}
628Here's a simple block:
632This should be a code block, though:
650This should just be an HTML comment:
660Just plain comment, with trailing spaces on the line:
670\begin{center}\rule{0.5\linewidth}{\linethickness}\end{center}
672\section{Inline Markup}\label{inline-markup}
674This is \emph{emphasized}, and so \emph{is this}.
676This is \textbf{strong}, and so \textbf{is this}.
678An \emph{\href{/url}{emphasized link}}.
680\textbf{\emph{This is strong and em.}}
682So is \textbf{\emph{this}} word.
684\textbf{\emph{This is strong and em.}}
686So is \textbf{\emph{this}} word.
688This is code: \texttt{\textgreater{}}, \texttt{\$}, \texttt{\textbackslash{}},
689\texttt{\textbackslash{}\$}, \texttt{\textless{}html\textgreater{}}.
691\sout{This is \emph{strikeout}.}
693Superscripts: a\textsuperscript{bc}d a\textsuperscript{\emph{hello}}
694a\textsuperscript{hello~there}.
696Subscripts: H\textsubscript{2}O, H\textsubscript{23}O,
697H\textsubscript{many~of~them}O.
699These should not be superscripts or subscripts, because of the unescaped
700spaces: a\^{}b c\^{}d, a\textasciitilde{}b c\textasciitilde{}d.
702\begin{center}\rule{0.5\linewidth}{\linethickness}\end{center}
704\section{Smart quotes, ellipses, dashes}\label{smart-quotes-ellipses-dashes}
706``Hello,'' said the spider. ``\,`Shelob' is my name.''
708`A', `B', and `C' are letters.
710`Oak,' `elm,' and `beech' are names of trees. So is `pine.'
712`He said, ``I want to go.''\,' Were you alive in the 70's?
714Here is some quoted `\texttt{code}' and a
715``\href{http://example.com/?foo=1\&bar=2}{quoted link}''.
717Some dashes: one---two --- three---four --- five.
719Dashes between numbers: 5--7, 255--66, 1987--1999.
721Ellipses\ldots{}and\ldots{}and\ldots{}.
723\begin{center}\rule{0.5\linewidth}{\linethickness}\end{center}
725\section{LaTeX}\label{latex}
730 \cite[22-23]{smith.1899}
736 \(\alpha \wedge \omega\)
742 Here's some display math:
743 \[\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}\]
745 Here's one that has a line break in it: \(\alpha + \omega \times x^2\).
748These shouldn't be math:
753 To get the famous equation, write \texttt{\$e\ =\ mc\^{}2\$}.
755 \$22,000 is a \emph{lot} of money. So is \$34,000. (It worked if ``lot'' is
758 Shoes (\$20) and socks (\$5).
760 Escaped \texttt{\$}: \$73 \emph{this should be emphasized} 23\$.
765\begin{tabular}{|l|l|}\hline
766Animal & Number \\ \hline
771\begin{center}\rule{0.5\linewidth}{\linethickness}\end{center}
773\section{Special Characters}\label{special-characters}
791AT\&T has an ampersand in their name.
793AT\&T is another way to write it.
801Backslash: \textbackslash{}
821Greater-than: \textgreater{}
833\begin{center}\rule{0.5\linewidth}{\linethickness}\end{center}
835\section{Links}\label{links}
837\subsection{Explicit}\label{explicit}
839Just a \href{/url/}{URL}.
841\href{/url/}{URL and title}.
843\href{/url/}{URL and title}.
845\href{/url/}{URL and title}.
847\href{/url/}{URL and title}
849\href{/url/}{URL and title}
851\href{/url/with_underscore}{with\_underscore}
853\href{mailto:nobody@nowhere.net}{Email link}
857\subsection{Reference}\label{reference}
859Foo \href{/url/}{bar}.
861Foo \href{/url/}{bar}.
863Foo \href{/url/}{bar}.
865With \href{/url/}{embedded {[}brackets{]}}.
867\href{/url/}{b} by itself should be a link.
869Indented \href{/url}{once}.
871Indented \href{/url}{twice}.
873Indented \href{/url}{thrice}.
875This should {[}not{]}{[}{]} be a link.
881Foo \href{/url/}{bar}.
883Foo \href{/url/}{biz}.
885\subsection{With ampersands}\label{with-ampersands}
887Here's a \href{http://example.com/?foo=1\&bar=2}{link with an ampersand in the
890Here's a link with an amersand in the link text:
891\href{http://att.com/}{AT\&T}.
893Here's an \href{/script?foo=1\&bar=2}{inline link}.
895Here's an \href{/script?foo=1\&bar=2}{inline link in pointy braces}.
897\subsection{Autolinks}\label{autolinks}
899With an ampersand: \url{http://example.com/?foo=1\&bar=2}
906 \url{http://example.com/}
912\href{mailto:nobody@nowhere.net}{\nolinkurl{nobody@nowhere.net}}
915Blockquoted: \url{http://example.com/}
918Auto-links should not occur here:
919\texttt{\textless{}http://example.com/\textgreater{}}
922or here: <http://example.com/>
925\begin{center}\rule{0.5\linewidth}{\linethickness}\end{center}
927\section{Images}\label{images}
929From ``Voyage dans la Lune'' by Georges Melies (1902):
933\includegraphics{lalune.jpg}
937Here is a movie \includegraphics{movie.jpg} icon.
939\begin{center}\rule{0.5\linewidth}{\linethickness}\end{center}
941\section{Footnotes}\label{footnotes}
943Here is a footnote reference,\footnote{Here is the footnote. It can go
944 anywhere after the footnote reference. It need not be placed at the end of
945 the document.} and another.\footnote{Here's the long note. This one contains
948 Subsequent blocks are indented to show that they belong to the footnote (as
955 If you want, you can indent every line, but you can also be lazy and just
956 indent the first line of each block.} This should \emph{not} be a footnote
957reference, because it contains a space.{[}\^{}my note{]} Here is an inline
958note.\footnote{This is \emph{easier} to type. Inline notes may contain
959 \href{http://google.com}{links} and \texttt{{]}} verbatim characters, as
960 well as {[}bracketed text{]}.}
963Notes can go in quotes.\footnote{In quote.}
967\def\labelenumi{\arabic{enumi}.}
970 And in list items.\footnote{In list.}
973This 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