2\usepackage{amssymb,amsmath}
3\usepackage[mathletters]{ucs}
4\usepackage[utf8x]{inputenc}
6% Redefine labelwidth for lists; otherwise, the enumerate package will cause
7% markers to extend beyond the left margin.
8\makeatletter\AtBeginDocument{%
10 {\setlength{\labelwidth}{4em}}
13\usepackage[normalem]{ulem}
14% avoid problems with \sout in headers with hyperref:
15\pdfstringdefDisableCommands{\renewcommand{\sout}{}}
16\newcommand{\textsubscr}[1]{\ensuremath{_{\scriptsize\textrm{#1}}}}
19% We will generate all images so they have a width \maxwidth. This means
20% that they will get their normal width if they fit onto the page, but
21% are scaled down if they would overflow the margins.
23\def\maxwidth{\ifdim\Gin@nat@width>\linewidth\linewidth
24\else\Gin@nat@width\fi}
26\let\Oldincludegraphics\includegraphics
27\renewcommand{\includegraphics}[1]{\Oldincludegraphics[width=\maxwidth]{#1}}
28\usepackage[breaklinks=true,unicode=true,pdfborder={0 0 0}]{hyperref}
29\setlength{\parindent}{0pt}
30\setlength{\parskip}{6pt plus 2pt minus 1pt}
31\setcounter{secnumdepth}{0}
32\VerbatimFootnotes % allows verbatim text in footnotes
34\title{Pandoc Test Suite}
35\author{John MacFarlane\\Anonymous}
41This is a set of tests for pandoc. Most of them are adapted from John Gruber's
44\begin{center}\rule{3in}{0.4pt}\end{center}
48\subsection{Level 2 with an \href{/url}{embedded link}}
50\subsubsection{Level 3 with \emph{emphasis}}
58\subsection{Level 2 with \emph{emphasis}}
60\subsubsection{Level 3}
68\begin{center}\rule{3in}{0.4pt}\end{center}
72Here's a regular paragraph.
74In Markdown 1.0.0 and earlier. Version 8. This line turns into a list item.
75Because a hard-wrapped line in the middle of a paragraph looked like a list
78Here's one with a bullet. * criminey.
80There should be a hard line break\\here.
82\begin{center}\rule{3in}{0.4pt}\end{center}
89This is a block quote. It is pretty short.
119This should not be a block quote: 2 \textgreater{} 1.
121And a following paragraph.
123\begin{center}\rule{3in}{0.4pt}\end{center}
130---- (should be four hyphens)
136this code block is indented by one tab
141 this code block is indented by two tabs
143These should not be escaped: \$ \\ \> \[ \{
145\begin{center}\rule{3in}{0.4pt}\end{center}
149\subsection{Unordered}
259 Item 1. graf two. The quick brown fox jumped over the lazy dog's back.
297Same thing but with paragraphs:
316\subsection{Tabs and spaces}
320 this is a list item indented with tabs
322 this is a list item indented with spaces
326 this is an example list item indented with tabs
328 this is an example list item indented with spaces
331\subsection{Fancy list markers}
333\begin{enumerate}[(1)]
342 \begin{enumerate}[i.]
343 \setcounter{enumii}{3}
345 sublist with roman numerals, starting with 4
348 \begin{enumerate}[(A)]
361 \begin{enumerate}[I.]
364 \begin{enumerate}[(1)]
365 \setcounter{enumiii}{5}
368 \begin{enumerate}[a)]
369 \setcounter{enumiv}{2}
371 Lower alpha with paren
388Should not be a list item:
394\begin{center}\rule{3in}{0.4pt}\end{center}
396\section{Definition Lists}
431Multiple blocks with italics:
437contains seeds, crisp, pleasant to taste
450Multiple definitions, tight:
462Multiple definitions, loose:
476Blank line after term, indented marker, alternate markers:
496Simple block on one line:
499And nested without indentation:
503Interpreted markdown in a table:
505This is \emph{emphasized}
506And this is \textbf{strong}
507Here's a simple block:
510This should be a code block, though:
525This should just be an HTML comment:
534Just plain comment, with trailing spaces on the line:
543\begin{center}\rule{3in}{0.4pt}\end{center}
545\section{Inline Markup}
547This is \emph{emphasized}, and so \emph{is this}.
549This is \textbf{strong}, and so \textbf{is this}.
551An \emph{\href{/url}{emphasized link}}.
553\textbf{\emph{This is strong and em.}}
555So is \textbf{\emph{this}} word.
557\textbf{\emph{This is strong and em.}}
559So is \textbf{\emph{this}} word.
561This is code: \verb!>!, \verb!$!, \verb!\!, \verb!\$!, \verb!<html>!.
563\sout{This is \emph{strikeout}.}
565Superscripts: a\textsuperscript{bc}d a\textsuperscript{\emph{hello}}
566a\textsuperscript{hello~there}.
568Subscripts: H\textsubscr{2}O, H\textsubscr{23}O, H\textsubscr{many~of~them}O.
570These should not be superscripts or subscripts, because of the unescaped
571spaces: a\^{}b c\^{}d, a\ensuremath{\sim}b c\ensuremath{\sim}d.
573\begin{center}\rule{3in}{0.4pt}\end{center}
575\section{Smart quotes, ellipses, dashes}
577``Hello,'' said the spider. ``\,`Shelob' is my name.''
579`A', `B', and `C' are letters.
581`Oak,' `elm,' and `beech' are names of trees. So is `pine.'
583`He said, ``I want to go.''\,' Were you alive in the 70's?
585Here is some quoted `\verb!code!' and a
586``\href{http://example.com/?foo=1\&bar=2}{quoted link}''.
588Some dashes: one---two --- three---four --- five.
590Dashes between numbers: 5--7, 255--66, 1987--1999.
592Ellipses\ldots{}and\ldots{}and\ldots{}.
594\begin{center}\rule{3in}{0.4pt}\end{center}
600 \cite[22-23]{smith.1899}
606 $\alpha \wedge \omega$
612 Here's some display math:
613 \[\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}\]
615 Here's one that has a line break in it: $\alpha + \omega \times x^2$.
617These shouldn't be math:
621 To get the famous equation, write \verb!$e = mc^2$!.
623 \$22,000 is a \emph{lot} of money. So is \$34,000. (It worked if ``lot'' is
626 Shoes (\$20) and socks (\$5).
628 Escaped \verb!$!: \$73 \emph{this should be emphasized} 23\$.
632\begin{tabular}{|l|l|}\hline
633Animal & Number \\ \hline
638\begin{center}\rule{3in}{0.4pt}\end{center}
640\section{Special Characters}
656AT\&T has an ampersand in their name.
658AT\&T is another way to write it.
666Backslash: \textbackslash{}
686Greater-than: \textgreater{}
698\begin{center}\rule{3in}{0.4pt}\end{center}
704Just a \href{/url/}{URL}.
706\href{/url/}{URL and title}.
708\href{/url/}{URL and title}.
710\href{/url/}{URL and title}.
712\href{/url/}{URL and title}
714\href{/url/}{URL and title}
716\href{/url/with\_underscore}{with\_underscore}
718\href{mailto:nobody@nowhere.net}{Email link}
722\subsection{Reference}
724Foo \href{/url/}{bar}.
726Foo \href{/url/}{bar}.
728Foo \href{/url/}{bar}.
730With \href{/url/}{embedded {[}brackets{]}}.
732\href{/url/}{b} by itself should be a link.
734Indented \href{/url}{once}.
736Indented \href{/url}{twice}.
738Indented \href{/url}{thrice}.
740This should {[}not{]}{[}{]} be a link.
745Foo \href{/url/}{bar}.
747Foo \href{/url/}{biz}.
749\subsection{With ampersands}
751Here's a \href{http://example.com/?foo=1\&bar=2}{link with an ampersand in the
754Here's a link with an amersand in the link text:
755\href{http://att.com/}{AT\&T}.
757Here's an \href{/script?foo=1\&bar=2}{inline link}.
759Here's an \href{/script?foo=1\&bar=2}{inline link in pointy braces}.
761\subsection{Autolinks}
763With an ampersand: \url{http://example.com/?foo=1&bar=2}
769 \url{http://example.com/}
774\href{mailto:nobody@nowhere.net}{\texttt{nobody@nowhere.net}}
777Blockquoted: \url{http://example.com/}
780Auto-links should not occur here: \verb!<http://example.com/>!
783or here: <http://example.com/>
785\begin{center}\rule{3in}{0.4pt}\end{center}
789From ``Voyage dans la Lune'' by Georges Melies (1902):
793\includegraphics{lalune.jpg}
797Here is a movie \includegraphics{movie.jpg} icon.
799\begin{center}\rule{3in}{0.4pt}\end{center}
803Here is a footnote reference,\footnote{Here is the footnote. It can go
804 anywhere after the footnote reference. It need not be placed at the end of
805 the document.} and another.\footnote{Here's the long note. This one contains
808 Subsequent blocks are indented to show that they belong to the footnote (as
814 If you want, you can indent every line, but you can also be lazy and just
815 indent the first line of each block.} This should \emph{not} be a footnote
816reference, because it contains a space.{[}\^{}my note{]} Here is an inline
817note.\footnote{This is \emph{easier} to type. Inline notes may contain
818 \href{http://google.com}{links} and \verb!]! verbatim characters, as well as
819 {[}bracketed text{]}.}
822Notes can go in quotes.\footnote{In quote.}
827 And in list items.\footnote{In list.}
829This 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