2\usepackage[mathletters]{ucs}
3\usepackage[utf8x]{inputenc}
4\setlength{\parindent}{0pt}
5\setlength{\parskip}{6pt plus 2pt minus 1pt}
7\newcommand{\textsubscript}[1]{\ensuremath{_{\scriptsize\textrm{#1}}}}
8\usepackage[breaklinks=true,unicode=true]{hyperref}
9\usepackage[normalem]{ulem}
10% avoid problems with \sout in headers with hyperref:
11\pdfstringdefDisableCommands{\renewcommand{\sout}{}}
17\setcounter{secnumdepth}{0}
18\VerbatimFootnotes % allows verbatim text in footnotes
19\title{Pandoc Test Suite}
20\author{John MacFarlane \and Anonymous}
25This is a set of tests for pandoc. Most of them are adapted from
26John Gruber's markdown test suite.
28\begin{center}\rule{3in}{0.4pt}\end{center}
32\subsection{Level 2 with an \href{/url}{embedded link}}
34\subsubsection{Level 3 with \emph{emphasis}}
40\section[alt title ignored]{Level 1}
42\subsection{Level 2 with \emph{emphasis}}
44\subsubsection{Level 3}
52\begin{center}\rule{3in}{0.4pt}\end{center}
56Here's a regular paragraph.
58In Markdown 1.0.0 and earlier. Version 8. This line turns into a
59list item. Because a hard-wrapped line in the middle of a paragraph
60looked like a list item.
62Here's one with a bullet. * criminey.
64There should be a hard line break\\here.
66\begin{center}\rule{3in}{0.4pt}\end{center}
73This is a block quote. It is pretty short.
103This should not be a block quote: 2 \textgreater{} 1.
134And a following paragraph.
136\begin{center}\rule{3in}{0.4pt}\end{center}
143---- (should be four hyphens)
149this code block is indented by one tab
154 this code block is indented by two tabs
156These should not be escaped: \$ \\ \> \[ \{
163\begin{center}\rule{3in}{0.4pt}\end{center}
167\subsection{Unordered}
292 Item 1. graf two. The quick brown fox jumped over the lazy dog's
334Same thing but with paragraphs:
355\subsection{Tabs and spaces}
359 this is a list item indented with tabs
362 this is a list item indented with spaces
366 this is an example list item indented with tabs
369 this is an example list item indented with spaces
373\subsection{Fancy list markers}
375\begin{enumerate}[(1)]
384 \begin{enumerate}[i.]
385 \setcounter{enumii}{3}
387 sublist with roman numerals, starting with 4
390 \begin{enumerate}[(A)]
403 \begin{enumerate}[I.]
406 \begin{enumerate}[(1)]
407 \setcounter{enumiii}{5}
410 \begin{enumerate}[a)]
411 \setcounter{enumiv}{2}
413 Lower alpha with paren
430Should not be a list item:
436\begin{center}\rule{3in}{0.4pt}\end{center}
438\section{Definition Lists}
473Multiple blocks with italics:
479contains seeds, crisp, pleasant to taste
494Simple block on one line:
497And nested without indentation:
501Interpreted markdown in a table:
503This is \emph{emphasized}
504And this is \textbf{strong}
505Here's a simple block:
508This should be a code block, though:
523This should just be an HTML comment:
532Just plain comment, with trailing spaces on the line:
541\begin{center}\rule{3in}{0.4pt}\end{center}
543\section{Inline Markup}
545This is \emph{emphasized}, and so \emph{is this}.
547This is \textbf{strong}, and so \textbf{is this}.
549An \emph{\href{/url}{emphasized link}}.
551\textbf{\emph{This is strong and em.}}
553So is \textbf{\emph{this}} word.
555\textbf{\emph{This is strong and em.}}
557So is \textbf{\emph{this}} word.
559This is code: \verb!>!, \verb!$!, \verb!\!, \verb!\$!,
562\sout{This is \emph{strikeout}.}
564Superscripts: a\textsuperscript{bc}d
565a\textsuperscript{\emph{hello}} a\textsuperscript{hello there}.
567Subscripts: H\textsubscript{2}O, H\textsubscript{23}O,
568H\textsubscript{many of them}O.
570These should not be superscripts or subscripts, because of the
571unescaped spaces: a\^{}b c\^{}d, a\ensuremath{\sim}b
574\begin{center}\rule{3in}{0.4pt}\end{center}
576\section{Smart quotes, ellipses, dashes}
578``Hello,'' said the spider. ``\,`Shelob' is my name.''
580`A', `B', and `C' are letters.
582`Oak,' `elm,' and `beech' are names of trees. So is `pine.'
584`He said, ``I want to go.''\,' Were you alive in the 70's?
586Here is some quoted `\verb!code!' and a
587``\href{http://example.com/?foo=1&bar=2}{quoted link}''.
589Some dashes: one---two---three---four---five.
591Dashes between numbers: 5--7, 255--66, 1987--1999.
593Ellipses\ldots{}and\ldots{}and\ldots{}.
595\begin{center}\rule{3in}{0.4pt}\end{center}
601 \cite[22-23]{smith.1899}
609 $\alpha \wedge \omega$
615 $\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}$
617 Here's one that has a line break in it:
618 $\alpha + \omega \times x^2$.
620These shouldn't be math:
624 To get the famous equation, write \verb!$e = mc^2$!.
626 \$22,000 is a \emph{lot} of money. So is \$34,000. (It worked if
627 ``lot'' is emphasized.)
629 Escaped \verb!$!: \$73 \emph{this should be emphasized} 23\$.
633\begin{tabular}{|l|l|}\hline
634Animal & Number \\ \hline
639A table with one column:
646\begin{center}\rule{3in}{0.4pt}\end{center}
648\section{Special Characters}
664AT\&T has an ampersand in their name.
666AT\&T is another way to write it.
674Backslash: \textbackslash{}
694Greater-than: \textgreater{}
706\begin{center}\rule{3in}{0.4pt}\end{center}
712Just a \href{/url/}{URL}.
714\href{/url/}{URL and title}.
716\href{/url/}{URL and title}.
718\href{/url/}{URL and title}.
720\href{/url/}{URL and title}
722\href{/url/}{URL and title}
724\href{/url/with_underscore}{with\_underscore}
726\href{mailto:nobody@nowhere.net}{Email link}
730\subsection{Reference}
732Foo \href{/url/}{bar}.
734Foo \href{/url/}{bar}.
736Foo \href{/url/}{bar}.
738With \href{/url/}{embedded [brackets]}.
740\href{/url/}{b} by itself should be a link.
742Indented \href{/url}{once}.
744Indented \href{/url}{twice}.
746Indented \href{/url}{thrice}.
748This should [not][] be a link.
753Foo \href{/url/}{bar}.
755Foo \href{/url/}{biz}.
757\subsection{With ampersands}
760\href{http://example.com/?foo=1&bar=2}{link with an ampersand in the URL}.
762Here's a link with an amersand in the link text:
763\href{http://att.com/}{AT\&T}.
765Here's an \href{/script?foo=1&bar=2}{inline link}.
768\href{/script?foo=1&bar=2}{inline link in pointy braces}.
770\subsection{Autolinks}
772With an ampersand: \url{http://example.com/?foo=1&bar=2}
778 \url{http://example.com/}
783\href{mailto:nobody@nowhere.net}{nobody@nowhere.net}
786Blockquoted: \url{http://example.com/}
789Auto-links should not occur here: \verb!<http://example.com/>!
792or here: <http://example.com/>
794\begin{center}\rule{3in}{0.4pt}\end{center}
798From ``Voyage dans la Lune'' by Georges Melies (1902):
800\includegraphics{lalune.jpg}
802Here is a movie \includegraphics{movie.jpg} icon.
804\begin{center}\rule{3in}{0.4pt}\end{center}
809reference,\footnote{ Here is the footnote. It can go anywhere after the footnote
810reference. It need not be placed at the end of the document.
813another.\footnote{ Here's the long note. This one contains multiple blocks.
815Subsequent blocks are indented to show that they belong to the
816footnote (as with list items).
821If you want, you can indent every line, but you can also be lazy
822and just indent the first line of each block.
824This should \emph{not} be a footnote reference, because it contains
825a space.[\^{}my note] Here is an inline
826note.\footnote{ This is \emph{easier} to type. Inline notes may contain
827\href{http://google.com}{links} and \verb!]! verbatim characters,
828as well as [bracketed text].
832Notes can go in quotes.\footnote{ In quote.
838 And in list items.\footnote{ In list.
841This paragraph should not be part of the note, as it is not
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