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]
13\setuptagging[state=start]
17\definefontfeature[default][default][script=latn, protrusion=quality, expansion=quality, itlc=yes, textitalics=yes, onum=yes, pnum=yes]
18\definefontfeature[smallcaps][script=latn, protrusion=quality, expansion=quality, smcp=yes, onum=yes, pnum=yes]
19\setupalign[hz,hanging]
20\setupitaliccorrection[global, always]
22\setupbodyfontenvironment[default][em=italic] % use italic as em, not slanted
24\definefallbackfamily[mainface][rm][CMU Serif][preset=range:greek, force=yes]
25\definefontfamily[mainface][rm][Latin Modern Roman]
26\definefontfamily[mainface][mm][Latin Modern Math]
27\definefontfamily[mainface][ss][Latin Modern Sans]
28\definefontfamily[mainface][tt][Latin Modern Typewriter][features=none]
29\setupbodyfont[mainface]
31\setupwhitespace[medium]
33\setuphead[chapter] [style=\tfd,header=empty]
34\setuphead[section] [style=\tfc]
35\setuphead[subsection] [style=\tfb]
36\setuphead[subsubsection] [style=\bf]
37\setuphead[subsubsubsection] [style=\sc]
38\setuphead[subsubsubsubsection][style=\it]
40\setuphead[chapter, section, subsection, subsubsection, subsubsubsection, subsubsubsubsection][number=no]
44 [headstyle=bold, style=normal, location=hanging, width=broad, margin=1cm, alternative=hanging]
46\setupitemize[autointro] % prevent orphan list intro
47\setupitemize[indentnext=no]
49\setupfloat[figure][default={here,nonumber}]
50\setupfloat[table][default={here,nonumber}]
52\setupthinrules[width=15em] % width of horizontal rules
54\setupxtable[frame=off]
55\setupxtable[head][topframe=on,bottomframe=on]
57\setupxtable[foot][bottomframe=on]
61\startalignment[middle]
62 {\tfd Pandoc Test Suite}
64 {\tfa John MacFarlane\crlf Anonymous}
70This is a set of tests for pandoc. Most of them are adapted from John Gruber's
75\section[title={Headers},reference={headers}]
77\subsection[title={Level 2 with an \useURL[url1][/url][][embedded
78link]\from[url1]},reference={level-2-with-an-embedded-link}]
80\subsubsection[title={Level 3 with
81{\em emphasis}},reference={level-3-with-emphasis}]
83\subsubsubsection[title={Level 4},reference={level-4}]
85\subsubsubsubsection[title={Level 5},reference={level-5}]
87\section[title={Level 1},reference={level-1}]
89\subsection[title={Level 2 with
90{\em emphasis}},reference={level-2-with-emphasis}]
92\subsubsection[title={Level 3},reference={level-3}]
96\subsection[title={Level 2},reference={level-2}]
102\section[title={Paragraphs},reference={paragraphs}]
104Here's a regular paragraph.
106In Markdown 1.0.0 and earlier. Version 8. This line turns into a list item.
107Because a hard-wrapped line in the middle of a paragraph looked like a list
110Here's one with a bullet. * criminey.
112There should be a hard line break\crlf
117\section[title={Block Quotes},reference={block-quotes}]
122This is a block quote. It is pretty short.
126Code in a block quote:
136\startitemize[n,packed][stopper=.]
154This should not be a block quote: 2 > 1.
156And a following paragraph.
160\section[title={Code Blocks},reference={code-blocks}]
165---- (should be four hyphens)
171this code block is indented by one tab
177 this code block is indented by two tabs
179These should not be escaped: \$ \\ \> \[ \{
184\section[title={Lists},reference={lists}]
186\subsection[title={Unordered},reference={unordered}]
254\subsection[title={Ordered},reference={ordered}]
258\startitemize[n,packed][stopper=.]
269\startitemize[n,packed][stopper=.]
280\startitemize[n][stopper=.]
291\startitemize[n][stopper=.]
302\startitemize[n][stopper=.]
306 Item 1. graf two. The quick brown fox jumped over the lazy dog's back.
313\subsection[title={Nested},reference={nested}]
318 \startitemize[packed]
321 \startitemize[packed]
330\startitemize[n,packed][stopper=.]
335 \startitemize[packed]
347Same thing but with paragraphs:
349\startitemize[n][stopper=.]
355 \startitemize[packed]
367\subsection[title={Tabs and spaces},reference={tabs-and-spaces}]
371 this is a list item indented with tabs
373 this is a list item indented with spaces
377 this is an example list item indented with tabs
379 this is an example list item indented with spaces
383\subsection[title={Fancy list markers},reference={fancy-list-markers}]
385\startitemize[n][start=2,left=(,stopper=),width=2.0em]
393 \startitemize[r,packed][start=4,stopper=.,width=2.0em]
395 sublist with roman numerals, starting with 4
398 \startitemize[A,packed][left=(,stopper=),width=2.0em]
409\startitemize[A,packed][stopper=.]
412 \startitemize[R,packed][stopper=.]
415 \startitemize[n,packed][start=6,left=(,stopper=),width=2.0em]
418 \startitemize[a,packed][start=3,stopper=)]
420 Lower alpha with paren
428\startitemize[n,packed]
433 \startitemize[a,packed]
439Should not be a list item:
447\section[title={Definition Lists},reference={definition-lists}]
451\startdescription{apple}
455\startdescription{orange}
459\startdescription{banana}
465\startdescription{apple}
469\startdescription{orange}
473\startdescription{banana}
479\startdescription{apple}
483\startdescription{orange}
487\startdescription{banana}
491Multiple blocks with italics:
493\startdescription{{\em apple}}
496 contains seeds, crisp, pleasant to taste
499\startdescription{{\em orange}}
511Multiple definitions, tight:
513\startdescription{apple}
519\startdescription{orange}
525Multiple definitions, loose:
527\startdescription{apple}
533\startdescription{orange}
539Blank line after term, indented marker, alternate markers:
541\startdescription{apple}
547\startdescription{orange}
550 \startitemize[n,packed][stopper=.]
558\section[title={HTML Blocks},reference={html-blocks}]
560Simple block on one line:
564And nested without indentation:
570Interpreted markdown in a table:
572This is {\em emphasized}
573And this is {\bf strong}
574Here's a simple block:
578This should be a code block, though:
596This should just be an HTML comment:
606Just plain comment, with trailing spaces on the line:
618\section[title={Inline Markup},reference={inline-markup}]
620This is {\em emphasized}, and so {\em is this}.
622This is {\bf strong}, and so {\bf is this}.
624An {\em \useURL[url2][/url][][emphasized link]\from[url2]}.
626{\bf {\em This is strong and em.}}
628So is {\bf {\em this}} word.
630{\bf {\em This is strong and em.}}
632So is {\bf {\em this}} word.
634This is code: \type{>}, \type{$}, \type{\}, \type{\$}, \type{<html>}.
636\overstrikes{This is {\em strikeout}.}
638Superscripts: a\high{bc}d a\high{{\em hello}} a\high{hello~there}.
640Subscripts: H\low{2}O, H\low{23}O, H\low{many~of~them}O.
642These should not be superscripts or subscripts, because of the unescaped
643spaces: a^b c^d, a\lettertilde{}b c\lettertilde{}d.
647\section[title={Smart quotes, ellipses,
648dashes},reference={smart-quotes-ellipses-dashes}]
650\quotation{Hello,} said the spider. \quotation{\quote{Shelob} is my name.}
652\quote{A}, \quote{B}, and \quote{C} are letters.
654\quote{Oak,} \quote{elm,} and \quote{beech} are names of trees. So is
657\quote{He said, \quotation{I want to go.}} Were you alive in the 70's?
659Here is some quoted \quote{\type{code}} and a
660\quotation{\useURL[url3][http://example.com/?foo=1&bar=2][][quoted
663Some dashes: one---two --- three---four --- five.
665Dashes between numbers: 5--7, 255--66, 1987--1999.
667Ellipses\ldots{}and\ldots{}and\ldots{}.
671\section[title={LaTeX},reference={latex}]
675 \cite[22-23]{smith.1899}
681 $\alpha \wedge \omega$
687 Here's some display math:
688 \startformula \frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h} \stopformula
690 Here's one that has a line break in it: $\alpha + \omega \times x^2$.
693These shouldn't be math:
697 To get the famous equation, write \type{$e = mc^2$}.
699 \$22,000 is a {\em lot} of money. So is \$34,000. (It worked if
700 \quotation{lot} is emphasized.)
702 Shoes (\$20) and socks (\$5).
704 Escaped \type{$}: \$73 {\em this should be emphasized} 23\$.
709\begin{tabular}{|l|l|}\hline
710Animal & Number \\ \hline
717\section[title={Special Characters},reference={special-characters}]
734AT&T has an ampersand in their name.
736AT&T is another way to write it.
744Backslash: \letterbackslash{}
778\section[title={Links},reference={links}]
780\subsection[title={Explicit},reference={explicit}]
782Just a \useURL[url4][/url/][][URL]\from[url4].
784\useURL[url5][/url/][][URL and title]\from[url5].
786\useURL[url6][/url/][][URL and title]\from[url6].
788\useURL[url7][/url/][][URL and title]\from[url7].
790\useURL[url8][/url/][][URL and title]\from[url8]
792\useURL[url9][/url/][][URL and title]\from[url9]
794\useURL[url10][/url/with_underscore][][with_underscore]\from[url10]
796\useURL[url11][mailto:nobody@nowhere.net][][Email link]\from[url11]
798\useURL[url12][][][Empty]\from[url12].
800\subsection[title={Reference},reference={reference}]
802Foo \useURL[url13][/url/][][bar]\from[url13].
804With \useURL[url14][/url/][][embedded {[}brackets{]}]\from[url14].
806\useURL[url15][/url/][][b]\from[url15] by itself should be a link.
808Indented \useURL[url16][/url][][once]\from[url16].
810Indented \useURL[url17][/url][][twice]\from[url17].
812Indented \useURL[url18][/url][][thrice]\from[url18].
814This should {[}not{]}{[}{]} be a link.
820Foo \useURL[url19][/url/][][bar]\from[url19].
822Foo \useURL[url20][/url/][][biz]\from[url20].
824\subsection[title={With ampersands},reference={with-ampersands}]
826Here's a \useURL[url21][http://example.com/?foo=1&bar=2][][link with an
827ampersand in the URL]\from[url21].
829Here's a link with an amersand in the link text:
830\useURL[url22][http://att.com/][][AT&T]\from[url22].
832Here's an \useURL[url23][/script?foo=1&bar=2][][inline link]\from[url23].
834Here's an \useURL[url24][/script?foo=1&bar=2][][inline link in pointy
837\subsection[title={Autolinks},reference={autolinks}]
839With an ampersand: \useURL[url25][http://example.com/?foo=1&bar=2]\from[url25]
845 \useURL[url26][http://example.com/]\from[url26]
851\useURL[url27][mailto:nobody@nowhere.net][][nobody@nowhere.net]\from[url27]
854Blockquoted: \useURL[url28][http://example.com/]\from[url28]
857Auto-links should not occur here: \type{<http://example.com/>}
860or here: <http://example.com/>
865\section[title={Images},reference={images}]
867From \quotation{Voyage dans la Lune} by Georges Melies (1902):
869\placefigure{lalune}{\externalfigure[lalune.jpg]}
871Here is a movie {\externalfigure[movie.jpg]} icon.
875\section[title={Footnotes},reference={footnotes}]
877Here is a footnote reference,\footnote{Here is the footnote. It can go
878 anywhere after the footnote reference. It need not be placed at the end of
879 the document.} and another.\startbuffer Here's the long note. This one
880 contains multiple blocks.
882 Subsequent blocks are indented to show that they belong to the footnote (as
889 If you want, you can indent every line, but you can also be lazy and just
890 indent the first line of each block.\stopbuffer\footnote{\getbuffer} This
891should {\em not} be a footnote reference, because it contains a space.{[}^my
892note{]} Here is an inline note.\footnote{This is {\em easier} to type. Inline
893 notes may contain \useURL[url29][http://google.com][][links]\from[url29] and
894 \type{]} verbatim characters, as well as {[}bracketed text{]}.}
897Notes can go in quotes.\footnote{In quote.}
900\startitemize[n,packed][stopper=.]
902 And in list items.\footnote{In list.}
905This 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