3 \setupcolors[state=start]
7\setupinteraction[state=start, color=middleblue]
9\setuppapersize [letter][letter]
10\setuplayout [width=middle, backspace=1.5in, cutspace=1.5in,
11 height=middle, topspace=0.75in, bottomspace=0.75in]
13\setuppagenumbering[location={footer,center}]
17\setupwhitespace[medium]
19\setuphead[chapter] [style=\tfd]
20\setuphead[section] [style=\tfc]
21\setuphead[subsection] [style=\tfb]
22\setuphead[subsubsection][style=\bf]
24\setuphead[chapter, section, subsection, subsubsection][number=no]
28 [headstyle=bold, style=normal, location=hanging, width=broad, margin=1cm]
30\setupitemize[autointro] % prevent orphan list intro
31\setupitemize[indentnext=no]
33\setupthinrules[width=15em] % width of horizontal rules
37 [before={\blank[medium]},
38 after={\blank[medium]},
44\startalignment[center]
46 {\tfd Pandoc Test Suite}
48 {\tfa John MacFarlane\crlf Anonymous}
54This is a set of tests for pandoc. Most of them are adapted from John Gruber's
59\section[headers]{Headers}
61\subsection[level-2-with-an-embedded-link]{Level 2 with an
62\useURL[url1][/url][][embedded link]\from[url1]}
64\subsubsection[level-3-with-emphasis]{Level 3 with {\em emphasis}}
66\subsubsubsection[level-4]{Level 4}
68\subsubsubsubsection[level-5]{Level 5}
70\section[level-1]{Level 1}
72\subsection[level-2-with-emphasis]{Level 2 with {\em emphasis}}
74\subsubsection[level-3]{Level 3}
78\subsection[level-2]{Level 2}
84\section[paragraphs]{Paragraphs}
86Here's a regular paragraph.
88In Markdown 1.0.0 and earlier. Version 8. This line turns into a list item.
89Because a hard-wrapped line in the middle of a paragraph looked like a list
92Here's one with a bullet. * criminey.
94There should be a hard line break\crlf
99\section[block-quotes]{Block Quotes}
104This is a block quote. It is pretty short.
108Code in a block quote:
118\startitemize[n,packed][stopper=.]
136This should not be a block quote: 2 > 1.
138And a following paragraph.
142\section[code-blocks]{Code Blocks}
147---- (should be four hyphens)
153this code block is indented by one tab
159 this code block is indented by two tabs
161These should not be escaped: \$ \\ \> \[ \{
166\section[lists]{Lists}
168\subsection[unordered]{Unordered}
236\subsection[ordered]{Ordered}
240\startitemize[n,packed][stopper=.]
251\startitemize[n,packed][stopper=.]
262\startitemize[n][stopper=.]
273\startitemize[n][stopper=.]
284\startitemize[n][stopper=.]
288 Item 1. graf two. The quick brown fox jumped over the lazy dog's back.
295\subsection[nested]{Nested}
300 \startitemize[packed]
303 \startitemize[packed]
312\startitemize[n,packed][stopper=.]
317 \startitemize[packed]
329Same thing but with paragraphs:
331\startitemize[n][stopper=.]
337 \startitemize[packed]
349\subsection[tabs-and-spaces]{Tabs and spaces}
353 this is a list item indented with tabs
355 this is a list item indented with spaces
359 this is an example list item indented with tabs
361 this is an example list item indented with spaces
365\subsection[fancy-list-markers]{Fancy list markers}
367\startitemize[n][start=2,left=(,stopper=),width=2.0em]
375 \startitemize[r,packed][start=4,stopper=.,width=2.0em]
377 sublist with roman numerals, starting with 4
380 \startitemize[A,packed][left=(,stopper=),width=2.0em]
391\startitemize[A,packed][stopper=.]
394 \startitemize[R,packed][stopper=.]
397 \startitemize[n,packed][start=6,left=(,stopper=),width=2.0em]
400 \startitemize[a,packed][start=3,stopper=)]
402 Lower alpha with paren
410\startitemize[n,packed]
415 \startitemize[a,packed]
421Should not be a list item:
429\section[definition-lists]{Definition Lists}
433\startdescription{apple}
437\startdescription{orange}
441\startdescription{banana}
447\startdescription{apple}
451\startdescription{orange}
455\startdescription{banana}
461\startdescription{apple}
465\startdescription{orange}
469\startdescription{banana}
473Multiple blocks with italics:
475\startdescription{{\em apple}}
478 contains seeds, crisp, pleasant to taste
481\startdescription{{\em orange}}
493Multiple definitions, tight:
495\startdescription{apple}
501\startdescription{orange}
507Multiple definitions, loose:
509\startdescription{apple}
515\startdescription{orange}
521Blank line after term, indented marker, alternate markers:
523\startdescription{apple}
529\startdescription{orange}
532 \startitemize[n,packed][stopper=.]
540\section[html-blocks]{HTML Blocks}
542Simple block on one line:
545And nested without indentation:
549Interpreted markdown in a table:
551This is {\em emphasized}
552And this is {\bf strong}
553Here's a simple block:
556This should be a code block, though:
573This should just be an HTML comment:
583Just plain comment, with trailing spaces on the line:
595\section[inline-markup]{Inline Markup}
597This is {\em emphasized}, and so {\em is this}.
599This is {\bf strong}, and so {\bf is this}.
601An {\em \useURL[url2][/url][][emphasized link]\from[url2]}.
603{\bf {\em This is strong and em.}}
605So is {\bf {\em this}} word.
607{\bf {\em This is strong and em.}}
609So is {\bf {\em this}} word.
611This is code: \type{>}, \type{$}, \type{\}, \type{\$}, \type{<html>}.
613\overstrikes{This is {\em strikeout}.}
615Superscripts: a\high{bc}d a\high{{\em hello}} a\high{hello~there}.
617Subscripts: H\low{2}O, H\low{23}O, H\low{many~of~them}O.
619These should not be superscripts or subscripts, because of the unescaped
620spaces: a^b c^d, a\lettertilde{}b c\lettertilde{}d.
624\section[smart-quotes-ellipses-dashes]{Smart quotes, ellipses, dashes}
626\quotation{Hello,} said the spider. \quotation{\quote{Shelob} is my name.}
628\quote{A}, \quote{B}, and \quote{C} are letters.
630\quote{Oak,} \quote{elm,} and \quote{beech} are names of trees. So is
633\quote{He said, \quotation{I want to go.}} Were you alive in the 70's?
635Here is some quoted \quote{\type{code}} and a
636\quotation{\useURL[url3][http://example.com/?foo=1&bar=2][][quoted
639Some dashes: one---two --- three---four --- five.
641Dashes between numbers: 5--7, 255--66, 1987--1999.
643Ellipses\ldots{}and\ldots{}and\ldots{}.
647\section[latex]{LaTeX}
651 \cite[22-23]{smith.1899}
657 $\alpha \wedge \omega$
663 Here's some display math:
664 \startformula \frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h} \stopformula
666 Here's one that has a line break in it: $\alpha + \omega \times x^2$.
669These shouldn't be math:
673 To get the famous equation, write \type{$e = mc^2$}.
675 \$22,000 is a {\em lot} of money. So is \$34,000. (It worked if
676 \quotation{lot} is emphasized.)
678 Shoes (\$20) and socks (\$5).
680 Escaped \type{$}: \$73 {\em this should be emphasized} 23\$.
687\section[special-characters]{Special Characters}
704AT&T has an ampersand in their name.
706AT&T is another way to write it.
714Backslash: \letterbackslash{}
748\section[links]{Links}
750\subsection[explicit]{Explicit}
752Just a \useURL[url4][/url/][][URL]\from[url4].
754\useURL[url5][/url/][][URL and title]\from[url5].
756\useURL[url6][/url/][][URL and title]\from[url6].
758\useURL[url7][/url/][][URL and title]\from[url7].
760\useURL[url8][/url/][][URL and title]\from[url8]
762\useURL[url9][/url/][][URL and title]\from[url9]
764\useURL[url10][/url/with_underscore][][with_underscore]\from[url10]
766\useURL[url11][mailto:nobody@nowhere.net][][Email link]\from[url11]
768\useURL[url12][][][Empty]\from[url12].
770\subsection[reference]{Reference}
772Foo \useURL[url13][/url/][][bar]\from[url13].
774Foo \useURL[url14][/url/][][bar]\from[url14].
776Foo \useURL[url15][/url/][][bar]\from[url15].
778With \useURL[url16][/url/][][embedded {[}brackets{]}]\from[url16].
780\useURL[url17][/url/][][b]\from[url17] by itself should be a link.
782Indented \useURL[url18][/url][][once]\from[url18].
784Indented \useURL[url19][/url][][twice]\from[url19].
786Indented \useURL[url20][/url][][thrice]\from[url20].
788This should {[}not{]}{[}{]} be a link.
794Foo \useURL[url21][/url/][][bar]\from[url21].
796Foo \useURL[url22][/url/][][biz]\from[url22].
798\subsection[with-ampersands]{With ampersands}
800Here's a \useURL[url23][http://example.com/?foo=1&bar=2][][link with an
801ampersand in the URL]\from[url23].
803Here's a link with an amersand in the link text:
804\useURL[url24][http://att.com/][][AT&T]\from[url24].
806Here's an \useURL[url25][/script?foo=1&bar=2][][inline link]\from[url25].
808Here's an \useURL[url26][/script?foo=1&bar=2][][inline link in pointy
811\subsection[autolinks]{Autolinks}
814\useURL[url27][http://example.com/?foo=1&bar=2][][\hyphenatedurl{http://example.com/?foo=1&bar=2}]\from[url27]
820 \useURL[url28][http://example.com/][][\hyphenatedurl{http://example.com/}]\from[url28]
826\useURL[url29][mailto:nobody@nowhere.net][][\hyphenatedurl{nobody@nowhere.net}]\from[url29]
830\useURL[url30][http://example.com/][][\hyphenatedurl{http://example.com/}]\from[url30]
833Auto-links should not occur here: \type{<http://example.com/>}
836or here: <http://example.com/>
841\section[images]{Images}
843From \quotation{Voyage dans la Lune} by Georges Melies (1902):
845\placefigure[here,nonumber]{lalune}{\externalfigure[lalune.jpg]}
847Here is a movie {\externalfigure[movie.jpg]} icon.
851\section[footnotes]{Footnotes}
853Here is a footnote reference,\footnote{Here is the footnote. It can go
854 anywhere after the footnote reference. It need not be placed at the end of
855 the document.} and another.\startbuffer Here's the long note. This one
856 contains multiple blocks.
858 Subsequent blocks are indented to show that they belong to the footnote (as
865 If you want, you can indent every line, but you can also be lazy and just
866 indent the first line of each block.\stopbuffer\footnote{\getbuffer} This
867should {\em not} be a footnote reference, because it contains a space.{[}^my
868note{]} Here is an inline note.\footnote{This is {\em easier} to type. Inline
869 notes may contain \useURL[url31][http://google.com][][links]\from[url31] and
870 \type{]} verbatim characters, as well as {[}bracketed text{]}.}
873Notes can go in quotes.\footnote{In quote.}
876\startitemize[n,packed][stopper=.]
878 And in list items.\footnote{In list.}
881This 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