4 title={Pandoc Test Suite},
5 author={John MacFarlane; Anonymous},
9% make chapter, section bookmarks visible when opening document
10\placebookmarks[chapter, section, subsection, subsubsection, subsubsubsection, subsubsubsubsection][chapter, section]
11\setupinteractionscreen[option=bookmark]
12\setuptagging[state=start]
15\definefontfeature[default][default][script=latn, protrusion=quality, expansion=quality, itlc=yes, textitalics=yes, onum=yes, pnum=yes]
16\definefontfeature[smallcaps][script=latn, protrusion=quality, expansion=quality, smcp=yes, onum=yes, pnum=yes]
17\setupalign[hz,hanging]
18\setupitaliccorrection[global, always]
19\setupbodyfontenvironment[default][em=italic] % use italic as em, not slanted
20\usemodule[simplefonts]
21\setmainfontfallback[DejaVu Serif][range={greekandcoptic, greekextended}, force=yes, rscale=auto]
22\setupwhitespace[medium]
24\setuphead[chapter] [style=\tfd,header=empty]
25\setuphead[section] [style=\tfc]
26\setuphead[subsection] [style=\tfb]
27\setuphead[subsubsection] [style=\bf]
28\setuphead[subsubsubsection] [style=\sc]
29\setuphead[subsubsubsubsection][style=\it]
31\setuphead[chapter, section, subsection, subsubsection, subsubsubsection, subsubsubsubsection][number=no]
35 [headstyle=bold, style=normal, location=hanging, width=broad, margin=1cm, alternative=hanging]
37\setupitemize[autointro] % prevent orphan list intro
38\setupitemize[indentnext=no]
40\setupfloat[figure][default={here,nonumber}]
41\setupfloat[table][default={here,nonumber}]
43\setupthinrules[width=15em] % width of horizontal rules
47\startalignment[middle]
48 {\tfd Pandoc Test Suite}
50 {\tfa John MacFarlane\crlf Anonymous}
56This is a set of tests for pandoc. Most of them are adapted from John Gruber's
61\section[headers]{Headers}
63\subsection[level-2-with-an-embedded-link]{Level 2 with an
64\useURL[url1][/url][][embedded link]\from[url1]}
66\subsubsection[level-3-with-emphasis]{Level 3 with {\em emphasis}}
68\subsubsubsection[level-4]{Level 4}
70\subsubsubsubsection[level-5]{Level 5}
72\section[level-1]{Level 1}
74\subsection[level-2-with-emphasis]{Level 2 with {\em emphasis}}
76\subsubsection[level-3]{Level 3}
80\subsection[level-2]{Level 2}
86\section[paragraphs]{Paragraphs}
88Here's a regular paragraph.
90In Markdown 1.0.0 and earlier. Version 8. This line turns into a list item.
91Because a hard-wrapped line in the middle of a paragraph looked like a list
94Here's one with a bullet. * criminey.
96There should be a hard line break\crlf
101\section[block-quotes]{Block Quotes}
106This is a block quote. It is pretty short.
110Code in a block quote:
120\startitemize[n,packed][stopper=.]
138This should not be a block quote: 2 > 1.
140And a following paragraph.
144\section[code-blocks]{Code Blocks}
149---- (should be four hyphens)
155this code block is indented by one tab
161 this code block is indented by two tabs
163These should not be escaped: \$ \\ \> \[ \{
168\section[lists]{Lists}
170\subsection[unordered]{Unordered}
238\subsection[ordered]{Ordered}
242\startitemize[n,packed][stopper=.]
253\startitemize[n,packed][stopper=.]
264\startitemize[n][stopper=.]
275\startitemize[n][stopper=.]
286\startitemize[n][stopper=.]
290 Item 1. graf two. The quick brown fox jumped over the lazy dog's back.
297\subsection[nested]{Nested}
302 \startitemize[packed]
305 \startitemize[packed]
314\startitemize[n,packed][stopper=.]
319 \startitemize[packed]
331Same thing but with paragraphs:
333\startitemize[n][stopper=.]
339 \startitemize[packed]
351\subsection[tabs-and-spaces]{Tabs and spaces}
355 this is a list item indented with tabs
357 this is a list item indented with spaces
361 this is an example list item indented with tabs
363 this is an example list item indented with spaces
367\subsection[fancy-list-markers]{Fancy list markers}
369\startitemize[n][start=2,left=(,stopper=),width=2.0em]
377 \startitemize[r,packed][start=4,stopper=.,width=2.0em]
379 sublist with roman numerals, starting with 4
382 \startitemize[A,packed][left=(,stopper=),width=2.0em]
393\startitemize[A,packed][stopper=.]
396 \startitemize[R,packed][stopper=.]
399 \startitemize[n,packed][start=6,left=(,stopper=),width=2.0em]
402 \startitemize[a,packed][start=3,stopper=)]
404 Lower alpha with paren
412\startitemize[n,packed]
417 \startitemize[a,packed]
423Should not be a list item:
431\section[definition-lists]{Definition Lists}
435\startdescription{apple}
439\startdescription{orange}
443\startdescription{banana}
449\startdescription{apple}
453\startdescription{orange}
457\startdescription{banana}
463\startdescription{apple}
467\startdescription{orange}
471\startdescription{banana}
475Multiple blocks with italics:
477\startdescription{{\em apple}}
480 contains seeds, crisp, pleasant to taste
483\startdescription{{\em orange}}
495Multiple definitions, tight:
497\startdescription{apple}
503\startdescription{orange}
509Multiple definitions, loose:
511\startdescription{apple}
517\startdescription{orange}
523Blank line after term, indented marker, alternate markers:
525\startdescription{apple}
531\startdescription{orange}
534 \startitemize[n,packed][stopper=.]
542\section[html-blocks]{HTML Blocks}
544Simple block on one line:
548And nested without indentation:
554Interpreted markdown in a table:
556This is {\em emphasized}
557And this is {\bf strong}
558Here's a simple block:
562This should be a code block, though:
580This should just be an HTML comment:
590Just plain comment, with trailing spaces on the line:
602\section[inline-markup]{Inline Markup}
604This is {\em emphasized}, and so {\em is this}.
606This is {\bf strong}, and so {\bf is this}.
608An {\em \useURL[url2][/url][][emphasized link]\from[url2]}.
610{\bf {\em This is strong and em.}}
612So is {\bf {\em this}} word.
614{\bf {\em This is strong and em.}}
616So is {\bf {\em this}} word.
618This is code: \type{>}, \type{$}, \type{\}, \type{\$}, \type{<html>}.
620\overstrikes{This is {\em strikeout}.}
622Superscripts: a\high{bc}d a\high{{\em hello}} a\high{hello~there}.
624Subscripts: H\low{2}O, H\low{23}O, H\low{many~of~them}O.
626These should not be superscripts or subscripts, because of the unescaped
627spaces: a^b c^d, a\lettertilde{}b c\lettertilde{}d.
631\section[smart-quotes-ellipses-dashes]{Smart quotes, ellipses, dashes}
633\quotation{Hello,} said the spider. \quotation{\quote{Shelob} is my name.}
635\quote{A}, \quote{B}, and \quote{C} are letters.
637\quote{Oak,} \quote{elm,} and \quote{beech} are names of trees. So is
640\quote{He said, \quotation{I want to go.}} Were you alive in the 70's?
642Here is some quoted \quote{\type{code}} and a
643\quotation{\useURL[url3][http://example.com/?foo=1&bar=2][][quoted
646Some dashes: one---two --- three---four --- five.
648Dashes between numbers: 5--7, 255--66, 1987--1999.
650Ellipses\ldots{}and\ldots{}and\ldots{}.
654\section[latex]{LaTeX}
658 \cite[22-23]{smith.1899}
664 $\alpha \wedge \omega$
670 Here's some display math:
671 \startformula \frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h} \stopformula
673 Here's one that has a line break in it: $\alpha + \omega \times x^2$.
676These shouldn't be math:
680 To get the famous equation, write \type{$e = mc^2$}.
682 \$22,000 is a {\em lot} of money. So is \$34,000. (It worked if
683 \quotation{lot} is emphasized.)
685 Shoes (\$20) and socks (\$5).
687 Escaped \type{$}: \$73 {\em this should be emphasized} 23\$.
694\section[special-characters]{Special Characters}
711AT&T has an ampersand in their name.
713AT&T is another way to write it.
721Backslash: \letterbackslash{}
755\section[links]{Links}
757\subsection[explicit]{Explicit}
759Just a \useURL[url4][/url/][][URL]\from[url4].
761\useURL[url5][/url/][][URL and title]\from[url5].
763\useURL[url6][/url/][][URL and title]\from[url6].
765\useURL[url7][/url/][][URL and title]\from[url7].
767\useURL[url8][/url/][][URL and title]\from[url8]
769\useURL[url9][/url/][][URL and title]\from[url9]
771\useURL[url10][/url/with_underscore][][with_underscore]\from[url10]
773\useURL[url11][mailto:nobody@nowhere.net][][Email link]\from[url11]
775\useURL[url12][][][Empty]\from[url12].
777\subsection[reference]{Reference}
779Foo \useURL[url13][/url/][][bar]\from[url13].
781Foo \useURL[url14][/url/][][bar]\from[url14].
783Foo \useURL[url15][/url/][][bar]\from[url15].
785With \useURL[url16][/url/][][embedded {[}brackets{]}]\from[url16].
787\useURL[url17][/url/][][b]\from[url17] by itself should be a link.
789Indented \useURL[url18][/url][][once]\from[url18].
791Indented \useURL[url19][/url][][twice]\from[url19].
793Indented \useURL[url20][/url][][thrice]\from[url20].
795This should {[}not{]}{[}{]} be a link.
801Foo \useURL[url21][/url/][][bar]\from[url21].
803Foo \useURL[url22][/url/][][biz]\from[url22].
805\subsection[with-ampersands]{With ampersands}
807Here's a \useURL[url23][http://example.com/?foo=1&bar=2][][link with an
808ampersand in the URL]\from[url23].
810Here's a link with an amersand in the link text:
811\useURL[url24][http://att.com/][][AT&T]\from[url24].
813Here's an \useURL[url25][/script?foo=1&bar=2][][inline link]\from[url25].
815Here's an \useURL[url26][/script?foo=1&bar=2][][inline link in pointy
818\subsection[autolinks]{Autolinks}
820With an ampersand: \useURL[url27][http://example.com/?foo=1&bar=2]\from[url27]
826 \useURL[url28][http://example.com/]\from[url28]
832\useURL[url29][mailto:nobody@nowhere.net][][nobody@nowhere.net]\from[url29]
835Blockquoted: \useURL[url30][http://example.com/]\from[url30]
838Auto-links should not occur here: \type{<http://example.com/>}
841or here: <http://example.com/>
846\section[images]{Images}
848From \quotation{Voyage dans la Lune} by Georges Melies (1902):
850\placefigure{lalune}{\externalfigure[lalune.jpg]}
852Here is a movie {\externalfigure[movie.jpg]} icon.
856\section[footnotes]{Footnotes}
858Here is a footnote reference,\footnote{Here is the footnote. It can go
859 anywhere after the footnote reference. It need not be placed at the end of
860 the document.} and another.\startbuffer Here's the long note. This one
861 contains multiple blocks.
863 Subsequent blocks are indented to show that they belong to the footnote (as
870 If you want, you can indent every line, but you can also be lazy and just
871 indent the first line of each block.\stopbuffer\footnote{\getbuffer} This
872should {\em not} be a footnote reference, because it contains a space.{[}^my
873note{]} Here is an inline note.\footnote{This is {\em easier} to type. Inline
874 notes may contain \useURL[url31][http://google.com][][links]\from[url31] and
875 \type{]} verbatim characters, as well as {[}bracketed text{]}.}
878Notes can go in quotes.\footnote{In quote.}
881\startitemize[n,packed][stopper=.]
883 And in list items.\footnote{In list.}
886This 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