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][DejaVu 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
56\startalignment[middle]
57 {\tfd Pandoc Test Suite}
59 {\tfa John MacFarlane\crlf Anonymous}
65This is a set of tests for pandoc. Most of them are adapted from John Gruber's
70\section[headers]{Headers}
72\subsection[level-2-with-an-embedded-link]{Level 2 with an
73\useURL[url1][/url][][embedded link]\from[url1]}
75\subsubsection[level-3-with-emphasis]{Level 3 with {\em emphasis}}
77\subsubsubsection[level-4]{Level 4}
79\subsubsubsubsection[level-5]{Level 5}
81\section[level-1]{Level 1}
83\subsection[level-2-with-emphasis]{Level 2 with {\em emphasis}}
85\subsubsection[level-3]{Level 3}
89\subsection[level-2]{Level 2}
95\section[paragraphs]{Paragraphs}
97Here's a regular paragraph.
99In Markdown 1.0.0 and earlier. Version 8. This line turns into a list item.
100Because a hard-wrapped line in the middle of a paragraph looked like a list
103Here's one with a bullet. * criminey.
105There should be a hard line break\crlf
110\section[block-quotes]{Block Quotes}
115This is a block quote. It is pretty short.
119Code in a block quote:
129\startitemize[n,packed][stopper=.]
147This should not be a block quote: 2 > 1.
149And a following paragraph.
153\section[code-blocks]{Code Blocks}
158---- (should be four hyphens)
164this code block is indented by one tab
170 this code block is indented by two tabs
172These should not be escaped: \$ \\ \> \[ \{
177\section[lists]{Lists}
179\subsection[unordered]{Unordered}
247\subsection[ordered]{Ordered}
251\startitemize[n,packed][stopper=.]
262\startitemize[n,packed][stopper=.]
273\startitemize[n][stopper=.]
284\startitemize[n][stopper=.]
295\startitemize[n][stopper=.]
299 Item 1. graf two. The quick brown fox jumped over the lazy dog's back.
306\subsection[nested]{Nested}
311 \startitemize[packed]
314 \startitemize[packed]
323\startitemize[n,packed][stopper=.]
328 \startitemize[packed]
340Same thing but with paragraphs:
342\startitemize[n][stopper=.]
348 \startitemize[packed]
360\subsection[tabs-and-spaces]{Tabs and spaces}
364 this is a list item indented with tabs
366 this is a list item indented with spaces
370 this is an example list item indented with tabs
372 this is an example list item indented with spaces
376\subsection[fancy-list-markers]{Fancy list markers}
378\startitemize[n][start=2,left=(,stopper=),width=2.0em]
386 \startitemize[r,packed][start=4,stopper=.,width=2.0em]
388 sublist with roman numerals, starting with 4
391 \startitemize[A,packed][left=(,stopper=),width=2.0em]
402\startitemize[A,packed][stopper=.]
405 \startitemize[R,packed][stopper=.]
408 \startitemize[n,packed][start=6,left=(,stopper=),width=2.0em]
411 \startitemize[a,packed][start=3,stopper=)]
413 Lower alpha with paren
421\startitemize[n,packed]
426 \startitemize[a,packed]
432Should not be a list item:
440\section[definition-lists]{Definition Lists}
444\startdescription{apple}
448\startdescription{orange}
452\startdescription{banana}
458\startdescription{apple}
462\startdescription{orange}
466\startdescription{banana}
472\startdescription{apple}
476\startdescription{orange}
480\startdescription{banana}
484Multiple blocks with italics:
486\startdescription{{\em apple}}
489 contains seeds, crisp, pleasant to taste
492\startdescription{{\em orange}}
504Multiple definitions, tight:
506\startdescription{apple}
512\startdescription{orange}
518Multiple definitions, loose:
520\startdescription{apple}
526\startdescription{orange}
532Blank line after term, indented marker, alternate markers:
534\startdescription{apple}
540\startdescription{orange}
543 \startitemize[n,packed][stopper=.]
551\section[html-blocks]{HTML Blocks}
553Simple block on one line:
557And nested without indentation:
563Interpreted markdown in a table:
565This is {\em emphasized}
566And this is {\bf strong}
567Here's a simple block:
571This should be a code block, though:
589This should just be an HTML comment:
599Just plain comment, with trailing spaces on the line:
611\section[inline-markup]{Inline Markup}
613This is {\em emphasized}, and so {\em is this}.
615This is {\bf strong}, and so {\bf is this}.
617An {\em \useURL[url2][/url][][emphasized link]\from[url2]}.
619{\bf {\em This is strong and em.}}
621So is {\bf {\em this}} word.
623{\bf {\em This is strong and em.}}
625So is {\bf {\em this}} word.
627This is code: \type{>}, \type{$}, \type{\}, \type{\$}, \type{<html>}.
629\overstrikes{This is {\em strikeout}.}
631Superscripts: a\high{bc}d a\high{{\em hello}} a\high{hello~there}.
633Subscripts: H\low{2}O, H\low{23}O, H\low{many~of~them}O.
635These should not be superscripts or subscripts, because of the unescaped
636spaces: a^b c^d, a\lettertilde{}b c\lettertilde{}d.
640\section[smart-quotes-ellipses-dashes]{Smart quotes, ellipses, dashes}
642\quotation{Hello,} said the spider. \quotation{\quote{Shelob} is my name.}
644\quote{A}, \quote{B}, and \quote{C} are letters.
646\quote{Oak,} \quote{elm,} and \quote{beech} are names of trees. So is
649\quote{He said, \quotation{I want to go.}} Were you alive in the 70's?
651Here is some quoted \quote{\type{code}} and a
652\quotation{\useURL[url3][http://example.com/?foo=1&bar=2][][quoted
655Some dashes: one---two --- three---four --- five.
657Dashes between numbers: 5--7, 255--66, 1987--1999.
659Ellipses\ldots{}and\ldots{}and\ldots{}.
663\section[latex]{LaTeX}
667 \cite[22-23]{smith.1899}
673 $\alpha \wedge \omega$
679 Here's some display math:
680 \startformula \frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h} \stopformula
682 Here's one that has a line break in it: $\alpha + \omega \times x^2$.
685These shouldn't be math:
689 To get the famous equation, write \type{$e = mc^2$}.
691 \$22,000 is a {\em lot} of money. So is \$34,000. (It worked if
692 \quotation{lot} is emphasized.)
694 Shoes (\$20) and socks (\$5).
696 Escaped \type{$}: \$73 {\em this should be emphasized} 23\$.
703\section[special-characters]{Special Characters}
720AT&T has an ampersand in their name.
722AT&T is another way to write it.
730Backslash: \letterbackslash{}
764\section[links]{Links}
766\subsection[explicit]{Explicit}
768Just a \useURL[url4][/url/][][URL]\from[url4].
770\useURL[url5][/url/][][URL and title]\from[url5].
772\useURL[url6][/url/][][URL and title]\from[url6].
774\useURL[url7][/url/][][URL and title]\from[url7].
776\useURL[url8][/url/][][URL and title]\from[url8]
778\useURL[url9][/url/][][URL and title]\from[url9]
780\useURL[url10][/url/with_underscore][][with_underscore]\from[url10]
782\useURL[url11][mailto:nobody@nowhere.net][][Email link]\from[url11]
784\useURL[url12][][][Empty]\from[url12].
786\subsection[reference]{Reference}
788Foo \useURL[url13][/url/][][bar]\from[url13].
790With \useURL[url14][/url/][][embedded {[}brackets{]}]\from[url14].
792\useURL[url15][/url/][][b]\from[url15] by itself should be a link.
794Indented \useURL[url16][/url][][once]\from[url16].
796Indented \useURL[url17][/url][][twice]\from[url17].
798Indented \useURL[url18][/url][][thrice]\from[url18].
800This should {[}not{]}{[}{]} be a link.
806Foo \useURL[url19][/url/][][bar]\from[url19].
808Foo \useURL[url20][/url/][][biz]\from[url20].
810\subsection[with-ampersands]{With ampersands}
812Here's a \useURL[url21][http://example.com/?foo=1&bar=2][][link with an
813ampersand in the URL]\from[url21].
815Here's a link with an amersand in the link text:
816\useURL[url22][http://att.com/][][AT&T]\from[url22].
818Here's an \useURL[url23][/script?foo=1&bar=2][][inline link]\from[url23].
820Here's an \useURL[url24][/script?foo=1&bar=2][][inline link in pointy
823\subsection[autolinks]{Autolinks}
825With an ampersand: \useURL[url25][http://example.com/?foo=1&bar=2]\from[url25]
831 \useURL[url26][http://example.com/]\from[url26]
837\useURL[url27][mailto:nobody@nowhere.net][][nobody@nowhere.net]\from[url27]
840Blockquoted: \useURL[url28][http://example.com/]\from[url28]
843Auto-links should not occur here: \type{<http://example.com/>}
846or here: <http://example.com/>
851\section[images]{Images}
853From \quotation{Voyage dans la Lune} by Georges Melies (1902):
855\placefigure{lalune}{\externalfigure[lalune.jpg]}
857Here is a movie {\externalfigure[movie.jpg]} icon.
861\section[footnotes]{Footnotes}
863Here is a footnote reference,\footnote{Here is the footnote. It can go
864 anywhere after the footnote reference. It need not be placed at the end of
865 the document.} and another.\startbuffer Here's the long note. This one
866 contains multiple blocks.
868 Subsequent blocks are indented to show that they belong to the footnote (as
875 If you want, you can indent every line, but you can also be lazy and just
876 indent the first line of each block.\stopbuffer\footnote{\getbuffer} This
877should {\em not} be a footnote reference, because it contains a space.{[}^my
878note{]} Here is an inline note.\footnote{This is {\em easier} to type. Inline
879 notes may contain \useURL[url29][http://google.com][][links]\from[url29] and
880 \type{]} verbatim characters, as well as {[}bracketed text{]}.}
883Notes can go in quotes.\footnote{In quote.}
886\startitemize[n,packed][stopper=.]
888 And in list items.\footnote{In list.}
891This 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