3 \setupcolors[state=start]
7\setupinteraction[state=start, color=middleblue]
9\setuppapersize [letter][letter]
10\setuplayout [width=middle, backspace=1.5in, cutspace=1.5in,
11 height=middle, topspace=0.75in, bottomspace=0.75in]
13\setuppagenumbering[location={footer,center}]
17\setupwhitespace[medium]
19\setuphead[chapter] [style=\tfd]
20\setuphead[section] [style=\tfc]
21\setuphead[subsection] [style=\tfb]
22\setuphead[subsubsection][style=\bf]
24\setuphead[chapter, section, subsection, subsubsection][number=no]
28 [headstyle=bold, style=normal, location=hanging, width=broad, margin=1cm, alternative=hanging]
30\setupitemize[autointro] % prevent orphan list intro
31\setupitemize[indentnext=no]
33\setupfloat[figure][default={here,nonumber}]
34\setupfloat[table][default={here,nonumber}]
36\setupthinrules[width=15em] % width of horizontal rules
40 [before={\blank[medium]},
41 after={\blank[medium]},
47\startalignment[center]
49 {\tfd Pandoc Test Suite}
51 {\tfa John MacFarlane\crlf Anonymous}
57This is a set of tests for pandoc. Most of them are adapted from John Gruber's
62\section[headers]{Headers}
64\subsection[level-2-with-an-embedded-link]{Level 2 with an
65\useURL[url1][/url][][embedded link]\from[url1]}
67\subsubsection[level-3-with-emphasis]{Level 3 with {\em emphasis}}
69\subsubsubsection[level-4]{Level 4}
71\subsubsubsubsection[level-5]{Level 5}
73\section[level-1]{Level 1}
75\subsection[level-2-with-emphasis]{Level 2 with {\em emphasis}}
77\subsubsection[level-3]{Level 3}
81\subsection[level-2]{Level 2}
87\section[paragraphs]{Paragraphs}
89Here's a regular paragraph.
91In Markdown 1.0.0 and earlier. Version 8. This line turns into a list item.
92Because a hard-wrapped line in the middle of a paragraph looked like a list
95Here's one with a bullet. * criminey.
97There should be a hard line break\crlf
102\section[block-quotes]{Block Quotes}
107This is a block quote. It is pretty short.
111Code in a block quote:
121\startitemize[n,packed][stopper=.]
139This should not be a block quote: 2 > 1.
141And a following paragraph.
145\section[code-blocks]{Code Blocks}
150---- (should be four hyphens)
156this code block is indented by one tab
162 this code block is indented by two tabs
164These should not be escaped: \$ \\ \> \[ \{
169\section[lists]{Lists}
171\subsection[unordered]{Unordered}
239\subsection[ordered]{Ordered}
243\startitemize[n,packed][stopper=.]
254\startitemize[n,packed][stopper=.]
265\startitemize[n][stopper=.]
276\startitemize[n][stopper=.]
287\startitemize[n][stopper=.]
291 Item 1. graf two. The quick brown fox jumped over the lazy dog's back.
298\subsection[nested]{Nested}
303 \startitemize[packed]
306 \startitemize[packed]
315\startitemize[n,packed][stopper=.]
320 \startitemize[packed]
332Same thing but with paragraphs:
334\startitemize[n][stopper=.]
340 \startitemize[packed]
352\subsection[tabs-and-spaces]{Tabs and spaces}
356 this is a list item indented with tabs
358 this is a list item indented with spaces
362 this is an example list item indented with tabs
364 this is an example list item indented with spaces
368\subsection[fancy-list-markers]{Fancy list markers}
370\startitemize[n][start=2,left=(,stopper=),width=2.0em]
378 \startitemize[r,packed][start=4,stopper=.,width=2.0em]
380 sublist with roman numerals, starting with 4
383 \startitemize[A,packed][left=(,stopper=),width=2.0em]
394\startitemize[A,packed][stopper=.]
397 \startitemize[R,packed][stopper=.]
400 \startitemize[n,packed][start=6,left=(,stopper=),width=2.0em]
403 \startitemize[a,packed][start=3,stopper=)]
405 Lower alpha with paren
413\startitemize[n,packed]
418 \startitemize[a,packed]
424Should not be a list item:
432\section[definition-lists]{Definition Lists}
436\startdescription{apple}
440\startdescription{orange}
444\startdescription{banana}
450\startdescription{apple}
454\startdescription{orange}
458\startdescription{banana}
464\startdescription{apple}
468\startdescription{orange}
472\startdescription{banana}
476Multiple blocks with italics:
478\startdescription{{\em apple}}
481 contains seeds, crisp, pleasant to taste
484\startdescription{{\em orange}}
496Multiple definitions, tight:
498\startdescription{apple}
504\startdescription{orange}
510Multiple definitions, loose:
512\startdescription{apple}
518\startdescription{orange}
524Blank line after term, indented marker, alternate markers:
526\startdescription{apple}
532\startdescription{orange}
535 \startitemize[n,packed][stopper=.]
543\section[html-blocks]{HTML Blocks}
545Simple block on one line:
548And nested without indentation:
553Interpreted markdown in a table:
555This is {\em emphasized}
556And this is {\bf strong}
557Here's a simple block:
561This should be a code block, though:
578This should just be an HTML comment:
588Just plain comment, with trailing spaces on the line:
600\section[inline-markup]{Inline Markup}
602This is {\em emphasized}, and so {\em is this}.
604This is {\bf strong}, and so {\bf is this}.
606An {\em \useURL[url2][/url][][emphasized link]\from[url2]}.
608{\bf {\em This is strong and em.}}
610So is {\bf {\em this}} word.
612{\bf {\em This is strong and em.}}
614So is {\bf {\em this}} word.
616This is code: \type{>}, \type{$}, \type{\}, \type{\$}, \type{<html>}.
618\overstrikes{This is {\em strikeout}.}
620Superscripts: a\high{bc}d a\high{{\em hello}} a\high{hello~there}.
622Subscripts: H\low{2}O, H\low{23}O, H\low{many~of~them}O.
624These should not be superscripts or subscripts, because of the unescaped
625spaces: a^b c^d, a\lettertilde{}b c\lettertilde{}d.
629\section[smart-quotes-ellipses-dashes]{Smart quotes, ellipses, dashes}
631\quotation{Hello,} said the spider. \quotation{\quote{Shelob} is my name.}
633\quote{A}, \quote{B}, and \quote{C} are letters.
635\quote{Oak,} \quote{elm,} and \quote{beech} are names of trees. So is
638\quote{He said, \quotation{I want to go.}} Were you alive in the 70's?
640Here is some quoted \quote{\type{code}} and a
641\quotation{\useURL[url3][http://example.com/?foo=1&bar=2][][quoted
644Some dashes: one---two --- three---four --- five.
646Dashes between numbers: 5--7, 255--66, 1987--1999.
648Ellipses\ldots{}and\ldots{}and\ldots{}.
652\section[latex]{LaTeX}
656 \cite[22-23]{smith.1899}
662 $\alpha \wedge \omega$
668 Here's some display math:
669 \startformula \frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h} \stopformula
671 Here's one that has a line break in it: $\alpha + \omega \times x^2$.
674These shouldn't be math:
678 To get the famous equation, write \type{$e = mc^2$}.
680 \$22,000 is a {\em lot} of money. So is \$34,000. (It worked if
681 \quotation{lot} is emphasized.)
683 Shoes (\$20) and socks (\$5).
685 Escaped \type{$}: \$73 {\em this should be emphasized} 23\$.
692\section[special-characters]{Special Characters}
709AT&T has an ampersand in their name.
711AT&T is another way to write it.
719Backslash: \letterbackslash{}
753\section[links]{Links}
755\subsection[explicit]{Explicit}
757Just a \useURL[url4][/url/][][URL]\from[url4].
759\useURL[url5][/url/][][URL and title]\from[url5].
761\useURL[url6][/url/][][URL and title]\from[url6].
763\useURL[url7][/url/][][URL and title]\from[url7].
765\useURL[url8][/url/][][URL and title]\from[url8]
767\useURL[url9][/url/][][URL and title]\from[url9]
769\useURL[url10][/url/with_underscore][][with_underscore]\from[url10]
771\useURL[url11][mailto:nobody@nowhere.net][][Email link]\from[url11]
773\useURL[url12][][][Empty]\from[url12].
775\subsection[reference]{Reference}
777Foo \useURL[url13][/url/][][bar]\from[url13].
779Foo \useURL[url14][/url/][][bar]\from[url14].
781Foo \useURL[url15][/url/][][bar]\from[url15].
783With \useURL[url16][/url/][][embedded {[}brackets{]}]\from[url16].
785\useURL[url17][/url/][][b]\from[url17] by itself should be a link.
787Indented \useURL[url18][/url][][once]\from[url18].
789Indented \useURL[url19][/url][][twice]\from[url19].
791Indented \useURL[url20][/url][][thrice]\from[url20].
793This should {[}not{]}{[}{]} be a link.
799Foo \useURL[url21][/url/][][bar]\from[url21].
801Foo \useURL[url22][/url/][][biz]\from[url22].
803\subsection[with-ampersands]{With ampersands}
805Here's a \useURL[url23][http://example.com/?foo=1&bar=2][][link with an
806ampersand in the URL]\from[url23].
808Here's a link with an amersand in the link text:
809\useURL[url24][http://att.com/][][AT&T]\from[url24].
811Here's an \useURL[url25][/script?foo=1&bar=2][][inline link]\from[url25].
813Here's an \useURL[url26][/script?foo=1&bar=2][][inline link in pointy
816\subsection[autolinks]{Autolinks}
818With an ampersand: \useURL[url27][http://example.com/?foo=1&bar=2]\from[url27]
824 \useURL[url28][http://example.com/]\from[url28]
830\useURL[url29][mailto:nobody@nowhere.net][][nobody@nowhere.net]\from[url29]
833Blockquoted: \useURL[url30][http://example.com/]\from[url30]
836Auto-links should not occur here: \type{<http://example.com/>}
839or here: <http://example.com/>
844\section[images]{Images}
846From \quotation{Voyage dans la Lune} by Georges Melies (1902):
848\placefigure{lalune}{\externalfigure[lalune.jpg]}
850Here is a movie {\externalfigure[movie.jpg]} icon.
854\section[footnotes]{Footnotes}
856Here is a footnote reference,\footnote{Here is the footnote. It can go
857 anywhere after the footnote reference. It need not be placed at the end of
858 the document.} and another.\startbuffer Here's the long note. This one
859 contains multiple blocks.
861 Subsequent blocks are indented to show that they belong to the footnote (as
868 If you want, you can indent every line, but you can also be lazy and just
869 indent the first line of each block.\stopbuffer\footnote{\getbuffer} This
870should {\em not} be a footnote reference, because it contains a space.{[}^my
871note{]} Here is an inline note.\footnote{This is {\em easier} to type. Inline
872 notes may contain \useURL[url31][http://google.com][][links]\from[url31] and
873 \type{]} verbatim characters, as well as {[}bracketed text{]}.}
876Notes can go in quotes.\footnote{In quote.}
879\startitemize[n,packed][stopper=.]
881 And in list items.\footnote{In list.}
884This 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