4 title={Pandoc Test Suite},
5 author={John MacFarlane; Anonymous},
10% make chapter, section bookmarks visible when opening document
11\placebookmarks[chapter, section, subsection, subsubsection, subsubsubsection, subsubsubsubsection][chapter, section]
12\setupinteractionscreen[option=bookmark]
14\setuppagenumbering[location={footer,middle}]
15\setupbackend[export=yes]
16\setupstructure[state=start,method=auto]
19\definefontfeature[default][default][script=latn, protrusion=quality, expansion=quality, itlc=yes, textitalics=yes, onum=yes, pnum=yes]
20\definefontfeature[smallcaps][script=latn, protrusion=quality, expansion=quality, smcp=yes, onum=yes, pnum=yes]
21\setupalign[hz,hanging]
22\setupitaliccorrection[global, always]
24\setupbodyfontenvironment[default][em=italic] % use italic as em, not slanted
26\definefallbackfamily[mainface][rm][CMU Serif][preset=range:greek, force=yes]
27\definefontfamily[mainface][rm][Latin Modern Roman]
28\definefontfamily[mainface][mm][Latin Modern Math]
29\definefontfamily[mainface][ss][Latin Modern Sans]
30\definefontfamily[mainface][tt][Latin Modern Typewriter][features=none]
31\setupbodyfont[mainface]
33\setupwhitespace[medium]
35\setuphead[chapter] [style=\tfd\setupinterlinespace,header=empty]
36\setuphead[section] [style=\tfc\setupinterlinespace]
37\setuphead[subsection] [style=\tfb\setupinterlinespace]
38\setuphead[subsubsection] [style=\bf]
39\setuphead[subsubsubsection] [style=\sc]
40\setuphead[subsubsubsubsection][style=\it]
42\setuphead[chapter, section, subsection, subsubsection, subsubsubsection, subsubsubsubsection][number=no]
46 [headstyle=bold, style=normal, location=hanging, width=broad, margin=1cm, alternative=hanging]
48\setupitemize[autointro] % prevent orphan list intro
49\setupitemize[indentnext=no]
51\setupfloat[figure][default={here,nonumber}]
52\setupfloat[table][default={here,nonumber}]
54\setupthinrules[width=15em] % width of horizontal rules
56\setupxtable[frame=off]
57\setupxtable[head][topframe=on,bottomframe=on]
59\setupxtable[foot][bottomframe=on]
63\startalignment[middle]
64 {\tfd\setupinterlinespace Pandoc Test Suite}
66 {\tfa\setupinterlinespace John MacFarlane\crlf Anonymous}
68 {\tfa\setupinterlinespace July 17, 2006}
72This is a set of tests for pandoc. Most of them are adapted from John Gruber's
77\section[title={Headers},reference={headers}]
79\subsection[title={Level 2 with an \useURL[url1][/url][][embedded
80link]\from[url1]},reference={level-2-with-an-embedded-link}]
82\subsubsection[title={Level 3 with
83{\em emphasis}},reference={level-3-with-emphasis}]
85\subsubsubsection[title={Level 4},reference={level-4}]
87\subsubsubsubsection[title={Level 5},reference={level-5}]
89\section[title={Level 1},reference={level-1}]
91\subsection[title={Level 2 with
92{\em emphasis}},reference={level-2-with-emphasis}]
94\subsubsection[title={Level 3},reference={level-3}]
98\subsection[title={Level 2},reference={level-2}]
104\section[title={Paragraphs},reference={paragraphs}]
106Here's a regular paragraph.
108In Markdown 1.0.0 and earlier. Version 8. This line turns into a list item.
109Because a hard-wrapped line in the middle of a paragraph looked like a list
112Here's one with a bullet. * criminey.
114There should be a hard line break\crlf
119\section[title={Block Quotes},reference={block-quotes}]
124This is a block quote. It is pretty short.
128Code in a block quote:
138\startitemize[n,packed][stopper=.]
156This should not be a block quote: 2 > 1.
158And a following paragraph.
162\section[title={Code Blocks},reference={code-blocks}]
167---- (should be four hyphens)
173this code block is indented by one tab
179 this code block is indented by two tabs
181These should not be escaped: \$ \\ \> \[ \{
186\section[title={Lists},reference={lists}]
188\subsection[title={Unordered},reference={unordered}]
256\subsection[title={Ordered},reference={ordered}]
260\startitemize[n,packed][stopper=.]
271\startitemize[n,packed][stopper=.]
282\startitemize[n][stopper=.]
293\startitemize[n][stopper=.]
304\startitemize[n][stopper=.]
308 Item 1. graf two. The quick brown fox jumped over the lazy dog's back.
315\subsection[title={Nested},reference={nested}]
320 \startitemize[packed]
323 \startitemize[packed]
332\startitemize[n,packed][stopper=.]
337 \startitemize[packed]
349Same thing but with paragraphs:
351\startitemize[n][stopper=.]
357 \startitemize[packed]
369\subsection[title={Tabs and spaces},reference={tabs-and-spaces}]
373 this is a list item indented with tabs
375 this is a list item indented with spaces
379 this is an example list item indented with tabs
381 this is an example list item indented with spaces
385\subsection[title={Fancy list markers},reference={fancy-list-markers}]
387\startitemize[n][start=2,left=(,stopper=),width=2.0em]
395 \startitemize[r,packed][start=4,stopper=.,width=2.0em]
397 sublist with roman numerals, starting with 4
400 \startitemize[A,packed][left=(,stopper=),width=2.0em]
411\startitemize[A,packed][stopper=.]
414 \startitemize[R,packed][stopper=.]
417 \startitemize[n,packed][start=6,left=(,stopper=),width=2.0em]
420 \startitemize[a,packed][start=3,stopper=)]
422 Lower alpha with paren
430\startitemize[n,packed]
435 \startitemize[a,packed]
441Should not be a list item:
449\section[title={Definition Lists},reference={definition-lists}]
453\startdescription{apple}
457\startdescription{orange}
461\startdescription{banana}
467\startdescription{apple}
471\startdescription{orange}
475\startdescription{banana}
481\startdescription{apple}
485\startdescription{orange}
489\startdescription{banana}
493Multiple blocks with italics:
495\startdescription{{\em apple}}
498 contains seeds, crisp, pleasant to taste
501\startdescription{{\em orange}}
513Multiple definitions, tight:
515\startdescription{apple}
521\startdescription{orange}
527Multiple definitions, loose:
529\startdescription{apple}
535\startdescription{orange}
541Blank line after term, indented marker, alternate markers:
543\startdescription{apple}
549\startdescription{orange}
552 \startitemize[n,packed][stopper=.]
560\section[title={HTML Blocks},reference={html-blocks}]
562Simple block on one line:
566And nested without indentation:
572Interpreted markdown in a table:
574This is {\em emphasized}
575And this is {\bf strong}
576Here's a simple block:
580This should be a code block, though:
598This should just be an HTML comment:
608Just plain comment, with trailing spaces on the line:
620\section[title={Inline Markup},reference={inline-markup}]
622This is {\em emphasized}, and so {\em is this}.
624This is {\bf strong}, and so {\bf is this}.
626An {\em \useURL[url2][/url][][emphasized link]\from[url2]}.
628{\bf {\em This is strong and em.}}
630So is {\bf {\em this}} word.
632{\bf {\em This is strong and em.}}
634So is {\bf {\em this}} word.
636This is code: \type{>}, \type{$}, \type{\}, \type{\$}, \type{<html>}.
638\overstrikes{This is {\em strikeout}.}
640Superscripts: a\high{bc}d a\high{{\em hello}} a\high{hello~there}.
642Subscripts: H\low{2}O, H\low{23}O, H\low{many~of~them}O.
644These should not be superscripts or subscripts, because of the unescaped
645spaces: a^b c^d, a\lettertilde{}b c\lettertilde{}d.
649\section[title={Smart quotes, ellipses,
650dashes},reference={smart-quotes-ellipses-dashes}]
652\quotation{Hello,} said the spider. \quotation{\quote{Shelob} is my name.}
654\quote{A}, \quote{B}, and \quote{C} are letters.
656\quote{Oak,} \quote{elm,} and \quote{beech} are names of trees. So is
659\quote{He said, \quotation{I want to go.}} Were you alive in the 70's?
661Here is some quoted \quote{\type{code}} and a
662\quotation{\useURL[url3][http://example.com/?foo=1&bar=2][][quoted
665Some dashes: one---two --- three---four --- five.
667Dashes between numbers: 5--7, 255--66, 1987--1999.
669Ellipses\ldots{}and\ldots{}and\ldots{}.
673\section[title={LaTeX},reference={latex}]
677 \cite[22-23]{smith.1899}
683 $\alpha \wedge \omega$
689 Here's some display math:
690 \startformula \frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h} \stopformula
692 Here's one that has a line break in it: $\alpha + \omega \times x^2$.
695These shouldn't be math:
699 To get the famous equation, write \type{$e = mc^2$}.
701 \$22,000 is a {\em lot} of money. So is \$34,000. (It worked if
702 \quotation{lot} is emphasized.)
704 Shoes (\$20) and socks (\$5).
706 Escaped \type{$}: \$73 {\em this should be emphasized} 23\$.
711\begin{tabular}{|l|l|}\hline
712Animal & Number \\ \hline
719\section[title={Special Characters},reference={special-characters}]
736AT&T has an ampersand in their name.
738AT&T is another way to write it.
746Backslash: \letterbackslash{}
780\section[title={Links},reference={links}]
782\subsection[title={Explicit},reference={explicit}]
784Just a \useURL[url4][/url/][][URL]\from[url4].
786\useURL[url5][/url/][][URL and title]\from[url5].
788\useURL[url6][/url/][][URL and title]\from[url6].
790\useURL[url7][/url/][][URL and title]\from[url7].
792\useURL[url8][/url/][][URL and title]\from[url8]
794\useURL[url9][/url/][][URL and title]\from[url9]
796\useURL[url10][/url/with_underscore][][with_underscore]\from[url10]
798\useURL[url11][mailto:nobody@nowhere.net][][Email link]\from[url11]
800\useURL[url12][][][Empty]\from[url12].
802\subsection[title={Reference},reference={reference}]
804Foo \useURL[url13][/url/][][bar]\from[url13].
806With \useURL[url14][/url/][][embedded {[}brackets{]}]\from[url14].
808\useURL[url15][/url/][][b]\from[url15] by itself should be a link.
810Indented \useURL[url16][/url][][once]\from[url16].
812Indented \useURL[url17][/url][][twice]\from[url17].
814Indented \useURL[url18][/url][][thrice]\from[url18].
816This should {[}not{]}{[}{]} be a link.
822Foo \useURL[url19][/url/][][bar]\from[url19].
824Foo \useURL[url20][/url/][][biz]\from[url20].
826\subsection[title={With ampersands},reference={with-ampersands}]
828Here's a \useURL[url21][http://example.com/?foo=1&bar=2][][link with an
829ampersand in the URL]\from[url21].
831Here's a link with an amersand in the link text:
832\useURL[url22][http://att.com/][][AT&T]\from[url22].
834Here's an \useURL[url23][/script?foo=1&bar=2][][inline link]\from[url23].
836Here's an \useURL[url24][/script?foo=1&bar=2][][inline link in pointy
839\subsection[title={Autolinks},reference={autolinks}]
841With an ampersand: \useURL[url25][http://example.com/?foo=1&bar=2]\from[url25]
847 \useURL[url26][http://example.com/]\from[url26]
853\useURL[url27][mailto:nobody@nowhere.net][][nobody@nowhere.net]\from[url27]
856Blockquoted: \useURL[url28][http://example.com/]\from[url28]
859Auto-links should not occur here: \type{<http://example.com/>}
862or here: <http://example.com/>
867\section[title={Images},reference={images}]
869From \quotation{Voyage dans la Lune} by Georges Melies (1902):
871\placefigure{lalune}{\externalfigure[lalune.jpg]}
873Here is a movie {\externalfigure[movie.jpg]} icon.
877\section[title={Footnotes},reference={footnotes}]
879Here is a footnote reference,\footnote{Here is the footnote. It can go
880 anywhere after the footnote reference. It need not be placed at the end of
881 the document.} and another.\startbuffer Here's the long note. This one
882 contains multiple blocks.
884 Subsequent blocks are indented to show that they belong to the footnote (as
891 If you want, you can indent every line, but you can also be lazy and just
892 indent the first line of each block.\stopbuffer\footnote{\getbuffer} This
893should {\em not} be a footnote reference, because it contains a space.{[}^my
894note{]} Here is an inline note.\footnote{This is {\em easier} to type. Inline
895 notes may contain \useURL[url29][http://google.com][][links]\from[url29] and
896 \type{]} verbatim characters, as well as {[}bracketed text{]}.}
899Notes can go in quotes.\footnote{In quote.}
902\startitemize[n,packed][stopper=.]
904 And in list items.\footnote{In list.}
907This 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