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\setupbackend[export=yes]
15\setupstructure[state=start,method=auto]
18\definefontfeature[default][default][script=latn, protrusion=quality, expansion=quality, itlc=yes, textitalics=yes, onum=yes, pnum=yes]
19\definefontfeature[smallcaps][script=latn, protrusion=quality, expansion=quality, smcp=yes, onum=yes, pnum=yes]
20\setupalign[hz,hanging]
21\setupitaliccorrection[global, always]
23\setupbodyfontenvironment[default][em=italic] % use italic as em, not slanted
25\definefallbackfamily[mainface][rm][CMU Serif][preset=range:greek, force=yes]
26\definefontfamily[mainface][rm][Latin Modern Roman]
27\definefontfamily[mainface][mm][Latin Modern Math]
28\definefontfamily[mainface][ss][Latin Modern Sans]
29\definefontfamily[mainface][tt][Latin Modern Typewriter][features=none]
30\setupbodyfont[mainface]
32\setupwhitespace[medium]
34\setuphead[chapter] [style=\tfd,header=empty]
35\setuphead[section] [style=\tfc]
36\setuphead[subsection] [style=\tfb]
37\setuphead[subsubsection] [style=\bf]
38\setuphead[subsubsubsection] [style=\sc]
39\setuphead[subsubsubsubsection][style=\it]
41\setuphead[chapter, section, subsection, subsubsection, subsubsubsection, subsubsubsubsection][number=no]
45 [headstyle=bold, style=normal, location=hanging, width=broad, margin=1cm, alternative=hanging]
47\setupitemize[autointro] % prevent orphan list intro
48\setupitemize[indentnext=no]
50\setupfloat[figure][default={here,nonumber}]
51\setupfloat[table][default={here,nonumber}]
53\setupthinrules[width=15em] % width of horizontal rules
55\setupxtable[frame=off]
56\setupxtable[head][topframe=on,bottomframe=on]
58\setupxtable[foot][bottomframe=on]
62\startalignment[middle]
63 {\tfd Pandoc Test Suite}
65 {\tfa John MacFarlane\crlf Anonymous}
71This is a set of tests for pandoc. Most of them are adapted from John Gruber's
76\section[title={Headers},reference={headers}]
78\subsection[title={Level 2 with an \useURL[url1][/url][][embedded
79link]\from[url1]},reference={level-2-with-an-embedded-link}]
81\subsubsection[title={Level 3 with
82{\em emphasis}},reference={level-3-with-emphasis}]
84\subsubsubsection[title={Level 4},reference={level-4}]
86\subsubsubsubsection[title={Level 5},reference={level-5}]
88\section[title={Level 1},reference={level-1}]
90\subsection[title={Level 2 with
91{\em emphasis}},reference={level-2-with-emphasis}]
93\subsubsection[title={Level 3},reference={level-3}]
97\subsection[title={Level 2},reference={level-2}]
103\section[title={Paragraphs},reference={paragraphs}]
105Here's a regular paragraph.
107In Markdown 1.0.0 and earlier. Version 8. This line turns into a list item.
108Because a hard-wrapped line in the middle of a paragraph looked like a list
111Here's one with a bullet. * criminey.
113There should be a hard line break\crlf
118\section[title={Block Quotes},reference={block-quotes}]
123This is a block quote. It is pretty short.
127Code in a block quote:
137\startitemize[n,packed][stopper=.]
155This should not be a block quote: 2 > 1.
157And a following paragraph.
161\section[title={Code Blocks},reference={code-blocks}]
166---- (should be four hyphens)
172this code block is indented by one tab
178 this code block is indented by two tabs
180These should not be escaped: \$ \\ \> \[ \{
185\section[title={Lists},reference={lists}]
187\subsection[title={Unordered},reference={unordered}]
255\subsection[title={Ordered},reference={ordered}]
259\startitemize[n,packed][stopper=.]
270\startitemize[n,packed][stopper=.]
281\startitemize[n][stopper=.]
292\startitemize[n][stopper=.]
303\startitemize[n][stopper=.]
307 Item 1. graf two. The quick brown fox jumped over the lazy dog's back.
314\subsection[title={Nested},reference={nested}]
319 \startitemize[packed]
322 \startitemize[packed]
331\startitemize[n,packed][stopper=.]
336 \startitemize[packed]
348Same thing but with paragraphs:
350\startitemize[n][stopper=.]
356 \startitemize[packed]
368\subsection[title={Tabs and spaces},reference={tabs-and-spaces}]
372 this is a list item indented with tabs
374 this is a list item indented with spaces
378 this is an example list item indented with tabs
380 this is an example list item indented with spaces
384\subsection[title={Fancy list markers},reference={fancy-list-markers}]
386\startitemize[n][start=2,left=(,stopper=),width=2.0em]
394 \startitemize[r,packed][start=4,stopper=.,width=2.0em]
396 sublist with roman numerals, starting with 4
399 \startitemize[A,packed][left=(,stopper=),width=2.0em]
410\startitemize[A,packed][stopper=.]
413 \startitemize[R,packed][stopper=.]
416 \startitemize[n,packed][start=6,left=(,stopper=),width=2.0em]
419 \startitemize[a,packed][start=3,stopper=)]
421 Lower alpha with paren
429\startitemize[n,packed]
434 \startitemize[a,packed]
440Should not be a list item:
448\section[title={Definition Lists},reference={definition-lists}]
452\startdescription{apple}
456\startdescription{orange}
460\startdescription{banana}
466\startdescription{apple}
470\startdescription{orange}
474\startdescription{banana}
480\startdescription{apple}
484\startdescription{orange}
488\startdescription{banana}
492Multiple blocks with italics:
494\startdescription{{\em apple}}
497 contains seeds, crisp, pleasant to taste
500\startdescription{{\em orange}}
512Multiple definitions, tight:
514\startdescription{apple}
520\startdescription{orange}
526Multiple definitions, loose:
528\startdescription{apple}
534\startdescription{orange}
540Blank line after term, indented marker, alternate markers:
542\startdescription{apple}
548\startdescription{orange}
551 \startitemize[n,packed][stopper=.]
559\section[title={HTML Blocks},reference={html-blocks}]
561Simple block on one line:
565And nested without indentation:
571Interpreted markdown in a table:
573This is {\em emphasized}
574And this is {\bf strong}
575Here's a simple block:
579This should be a code block, though:
597This should just be an HTML comment:
607Just plain comment, with trailing spaces on the line:
619\section[title={Inline Markup},reference={inline-markup}]
621This is {\em emphasized}, and so {\em is this}.
623This is {\bf strong}, and so {\bf is this}.
625An {\em \useURL[url2][/url][][emphasized link]\from[url2]}.
627{\bf {\em This is strong and em.}}
629So is {\bf {\em this}} word.
631{\bf {\em This is strong and em.}}
633So is {\bf {\em this}} word.
635This is code: \type{>}, \type{$}, \type{\}, \type{\$}, \type{<html>}.
637\overstrikes{This is {\em strikeout}.}
639Superscripts: a\high{bc}d a\high{{\em hello}} a\high{hello~there}.
641Subscripts: H\low{2}O, H\low{23}O, H\low{many~of~them}O.
643These should not be superscripts or subscripts, because of the unescaped
644spaces: a^b c^d, a\lettertilde{}b c\lettertilde{}d.
648\section[title={Smart quotes, ellipses,
649dashes},reference={smart-quotes-ellipses-dashes}]
651\quotation{Hello,} said the spider. \quotation{\quote{Shelob} is my name.}
653\quote{A}, \quote{B}, and \quote{C} are letters.
655\quote{Oak,} \quote{elm,} and \quote{beech} are names of trees. So is
658\quote{He said, \quotation{I want to go.}} Were you alive in the 70's?
660Here is some quoted \quote{\type{code}} and a
661\quotation{\useURL[url3][http://example.com/?foo=1&bar=2][][quoted
664Some dashes: one---two --- three---four --- five.
666Dashes between numbers: 5--7, 255--66, 1987--1999.
668Ellipses\ldots{}and\ldots{}and\ldots{}.
672\section[title={LaTeX},reference={latex}]
676 \cite[22-23]{smith.1899}
682 $\alpha \wedge \omega$
688 Here's some display math:
689 \startformula \frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h} \stopformula
691 Here's one that has a line break in it: $\alpha + \omega \times x^2$.
694These shouldn't be math:
698 To get the famous equation, write \type{$e = mc^2$}.
700 \$22,000 is a {\em lot} of money. So is \$34,000. (It worked if
701 \quotation{lot} is emphasized.)
703 Shoes (\$20) and socks (\$5).
705 Escaped \type{$}: \$73 {\em this should be emphasized} 23\$.
710\begin{tabular}{|l|l|}\hline
711Animal & Number \\ \hline
718\section[title={Special Characters},reference={special-characters}]
735AT&T has an ampersand in their name.
737AT&T is another way to write it.
745Backslash: \letterbackslash{}
779\section[title={Links},reference={links}]
781\subsection[title={Explicit},reference={explicit}]
783Just a \useURL[url4][/url/][][URL]\from[url4].
785\useURL[url5][/url/][][URL and title]\from[url5].
787\useURL[url6][/url/][][URL and title]\from[url6].
789\useURL[url7][/url/][][URL and title]\from[url7].
791\useURL[url8][/url/][][URL and title]\from[url8]
793\useURL[url9][/url/][][URL and title]\from[url9]
795\useURL[url10][/url/with_underscore][][with_underscore]\from[url10]
797\useURL[url11][mailto:nobody@nowhere.net][][Email link]\from[url11]
799\useURL[url12][][][Empty]\from[url12].
801\subsection[title={Reference},reference={reference}]
803Foo \useURL[url13][/url/][][bar]\from[url13].
805With \useURL[url14][/url/][][embedded {[}brackets{]}]\from[url14].
807\useURL[url15][/url/][][b]\from[url15] by itself should be a link.
809Indented \useURL[url16][/url][][once]\from[url16].
811Indented \useURL[url17][/url][][twice]\from[url17].
813Indented \useURL[url18][/url][][thrice]\from[url18].
815This should {[}not{]}{[}{]} be a link.
821Foo \useURL[url19][/url/][][bar]\from[url19].
823Foo \useURL[url20][/url/][][biz]\from[url20].
825\subsection[title={With ampersands},reference={with-ampersands}]
827Here's a \useURL[url21][http://example.com/?foo=1&bar=2][][link with an
828ampersand in the URL]\from[url21].
830Here's a link with an amersand in the link text:
831\useURL[url22][http://att.com/][][AT&T]\from[url22].
833Here's an \useURL[url23][/script?foo=1&bar=2][][inline link]\from[url23].
835Here's an \useURL[url24][/script?foo=1&bar=2][][inline link in pointy
838\subsection[title={Autolinks},reference={autolinks}]
840With an ampersand: \useURL[url25][http://example.com/?foo=1&bar=2]\from[url25]
846 \useURL[url26][http://example.com/]\from[url26]
852\useURL[url27][mailto:nobody@nowhere.net][][nobody@nowhere.net]\from[url27]
855Blockquoted: \useURL[url28][http://example.com/]\from[url28]
858Auto-links should not occur here: \type{<http://example.com/>}
861or here: <http://example.com/>
866\section[title={Images},reference={images}]
868From \quotation{Voyage dans la Lune} by Georges Melies (1902):
870\placefigure{lalune}{\externalfigure[lalune.jpg]}
872Here is a movie {\externalfigure[movie.jpg]} icon.
876\section[title={Footnotes},reference={footnotes}]
878Here is a footnote reference,\footnote{Here is the footnote. It can go
879 anywhere after the footnote reference. It need not be placed at the end of
880 the document.} and another.\startbuffer Here's the long note. This one
881 contains multiple blocks.
883 Subsequent blocks are indented to show that they belong to the footnote (as
890 If you want, you can indent every line, but you can also be lazy and just
891 indent the first line of each block.\stopbuffer\footnote{\getbuffer} This
892should {\em not} be a footnote reference, because it contains a space.{[}^my
893note{]} Here is an inline note.\footnote{This is {\em easier} to type. Inline
894 notes may contain \useURL[url29][http://google.com][][links]\from[url29] and
895 \type{]} verbatim characters, as well as {[}bracketed text{]}.}
898Notes can go in quotes.\footnote{In quote.}
901\startitemize[n,packed][stopper=.]
903 And in list items.\footnote{In list.}
906This 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