1\enableregime[utf] % use UTF-8
3\setupcolors[state=start]
4\setupinteraction[state=start, color=middleblue] % needed for hyperlinks
6\setuppapersize[letter][letter] % use letter paper
7\setuplayout[width=middle, backspace=1.5in, cutspace=1.5in,
8 height=middle, header=0.75in, footer=0.75in] % page layout
9\setuppagenumbering[location={footer,center}] % number pages
10\setupbodyfont[11pt] % 11pt font
11\setupwhitespace[medium] % inter-paragraph spacing
13\setuphead[section][style=\tfc]
14\setuphead[subsection][style=\tfb]
15\setuphead[subsubsection][style=\bf]
17% define descr (for definition lists)
18\definedescription[descr][
19 headstyle=bold,style=normal,align=left,location=hanging,
20 width=broad,margin=1cm]
22% prevent orphaned list intros
23\setupitemize[autointro]
25% define defaults for bulleted lists
26\setupitemize[1][symbol=1][indentnext=no]
27\setupitemize[2][symbol=2][indentnext=no]
28\setupitemize[3][symbol=3][indentnext=no]
29\setupitemize[4][symbol=4][indentnext=no]
31\setupthinrules[width=15em] % width of horizontal rules
41[\v!blockquote][\v!quotation]
47before={\blank[medium]},
48after={\blank[medium]},
54\startalignment[center]
56 {\tfd Pandoc Test Suite}
58 {\tfa John MacFarlane\crlf Anonymous}
64This is a set of tests for pandoc. Most of them are adapted from John Gruber's
71\subsubject{Level 2 with an \useURL[1][/url][][embedded link]\from[1]}
73\subsubsubject{Level 3 with {\em emphasis}}
75\subsubsubsubject{Level 4}
77\subsubsubsubsubject{Level 5}
81\subsubject{Level 2 with {\em emphasis}}
83\subsubsubject{Level 3}
95Here's a regular paragraph.
97In Markdown 1.0.0 and earlier. Version 8. This line turns into a list item.
98Because a hard-wrapped line in the middle of a paragraph looked like a list
101Here's one with a bullet. * criminey.
103There should be a hard line break\crlf
108\subject{Block Quotes}
113This is a block quote. It is pretty short.
117Code in a block quote:
127\startitemize[n][stopper=.]
145This should not be a block quote: 2 \lettermore{} 1.
147And a following paragraph.
156---- (should be four hyphens)
162this code block is indented by one tab
168 this code block is indented by two tabs
170These should not be escaped: \$ \\ \> \[ \{
177\subsubject{Unordered}
249\startitemize[n][stopper=.]
260\startitemize[n][stopper=.]
271\startitemize[n][stopper=.]
282\startitemize[n][stopper=.]
293\startitemize[n][stopper=.]
297 Item 1. graf two. The quick brown fox jumped over the lazy dog's back.
321\startitemize[n][stopper=.]
338Same thing but with paragraphs:
340\startitemize[n][stopper=.]
358\subsubject{Tabs and spaces}
362 this is a list item indented with tabs
364 this is a list item indented with spaces
368 this is an example list item indented with tabs
370 this is an example list item indented with spaces
374\subsubject{Fancy list markers}
376\startitemize[n][start=2,left=(,stopper=),width=2.0em]
384 \startitemize[r][start=4,stopper=.,width=2.0em]
386 sublist with roman numerals, starting with 4
389 \startitemize[A][left=(,stopper=),width=2.0em]
400\startitemize[A][stopper=.]
403 \startitemize[R][stopper=.]
406 \startitemize[n][start=6,left=(,stopper=),width=2.0em]
409 \startitemize[a][start=3,stopper=)]
411 Lower alpha with paren
430Should not be a list item:
438\subject{Definition Lists}
482Multiple blocks with italics:
484\startdescr{{\em apple}}
487 contains seeds, crisp, pleasant to taste
490\startdescr{{\em orange}}
502Multiple definitions, tight:
516Multiple definitions, loose:
530Blank line after term, indented marker, alternate markers:
541 \startitemize[n][stopper=.]
551Simple block on one line:
554And nested without indentation:
558Interpreted markdown in a table:
560This is {\em emphasized}
561And this is {\bf strong}
562Here's a simple block:
565This should be a code block, though:
582This should just be an HTML comment:
592Just plain comment, with trailing spaces on the line:
604\subject{Inline Markup}
606This is {\em emphasized}, and so {\em is this}.
608This is {\bf strong}, and so {\bf is this}.
610An {\em \useURL[2][/url][][emphasized link]\from[2]}.
612{\bf {\em This is strong and em.}}
614So is {\bf {\em this}} word.
616{\bf {\em This is strong and em.}}
618So is {\bf {\em this}} word.
620This is code: \type{>}, \type{$}, \type{\}, \type{\$}, \type{<html>}.
622\overstrikes{This is {\em strikeout}.}
624Superscripts: a\high{bc}d a\high{{\em hello}} a\high{hello~there}.
626Subscripts: H\low{2}O, H\low{23}O, H\low{many~of~them}O.
628These should not be superscripts or subscripts, because of the unescaped
629spaces: a\letterhat{}b c\letterhat{}d, a\lettertilde{}b c\lettertilde{}d.
633\subject{Smart quotes, ellipses, dashes}
635\quotation{Hello,} said the spider. \quotation{\quote{Shelob} is my name.}
637\quote{A}, \quote{B}, and \quote{C} are letters.
639\quote{Oak,} \quote{elm,} and \quote{beech} are names of trees. So is
642\quote{He said, \quotation{I want to go.}} Were you alive in the 70's?
644Here is some quoted \quote{\type{code}} and a
645\quotation{\useURL[3][http://example.com/?foo=1&bar=2][][quoted
648Some dashes: one---two --- three---four --- five.
650Dashes between numbers: 5--7, 255--66, 1987--1999.
652Ellipses\ldots{}and\ldots{}and\ldots{}.
660 \cite[22-23]{smith.1899}
666 $\alpha \wedge \omega$
672 Here's some display math:
673 \startformula \frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h} \stopformula
675 Here's one that has a line break in it: $\alpha + \omega \times x^2$.
678These shouldn't be math:
682 To get the famous equation, write \type{$e = mc^2$}.
684 \$22,000 is a {\em lot} of money. So is \$34,000. (It worked if
685 \quotation{lot} is emphasized.)
687 Shoes (\$20) and socks (\$5).
689 Escaped \type{$}: \$73 {\em this should be emphasized} 23\$.
696\subject{Special Characters}
713AT\&T has an ampersand in their name.
715AT\&T is another way to write it.
723Backslash: \letterbackslash{}
729Underscore: \letterunderscore{}
731Left brace: \letteropenbrace{}
733Right brace: \letterclosebrace{}
743Greater-than: \lettermore{}
761Just a \useURL[4][/url/][][URL]\from[4].
763\useURL[5][/url/][][URL and title]\from[5].
765\useURL[6][/url/][][URL and title]\from[6].
767\useURL[7][/url/][][URL and title]\from[7].
769\useURL[8][/url/][][URL and title]\from[8]
771\useURL[9][/url/][][URL and title]\from[9]
773\useURL[10][/url/with_underscore][][with\letterunderscore{}underscore]\from[10]
775\useURL[11][mailto:nobody@nowhere.net][][Email link]\from[11]
777\useURL[12][][][Empty]\from[12].
779\subsubject{Reference}
781Foo \useURL[13][/url/][][bar]\from[13].
783Foo \useURL[14][/url/][][bar]\from[14].
785Foo \useURL[15][/url/][][bar]\from[15].
787With \useURL[16][/url/][][embedded {[}brackets{]}]\from[16].
789\useURL[17][/url/][][b]\from[17] by itself should be a link.
791Indented \useURL[18][/url][][once]\from[18].
793Indented \useURL[19][/url][][twice]\from[19].
795Indented \useURL[20][/url][][thrice]\from[20].
797This should {[}not{]}{[}{]} be a link.
803Foo \useURL[21][/url/][][bar]\from[21].
805Foo \useURL[22][/url/][][biz]\from[22].
807\subsubject{With ampersands}
809Here's a \useURL[23][http://example.com/?foo=1&bar=2][][link with an ampersand
812Here's a link with an amersand in the link text:
813\useURL[24][http://att.com/][][AT\&T]\from[24].
815Here's an \useURL[25][/script?foo=1&bar=2][][inline link]\from[25].
817Here's an \useURL[26][/script?foo=1&bar=2][][inline link in pointy
820\subsubject{Autolinks}
823\useURL[27][http://example.com/?foo=1&bar=2][][http://example.com/?foo=1\&bar=2]\from[27]
829 \useURL[28][http://example.com/][][http://example.com/]\from[28]
835\useURL[29][mailto:nobody@nowhere.net][][nobody@nowhere.net]\from[29]
838Blockquoted: \useURL[30][http://example.com/][][http://example.com/]\from[30]
841Auto-links should not occur here: \type{<http://example.com/>}
844or here: <http://example.com/>
851From \quotation{Voyage dans la Lune} by Georges Melies (1902):
853\placefigure[here,nonumber]{lalune}{\externalfigure[lalune.jpg]}
855Here is a movie {\externalfigure[movie.jpg]} icon.
861Here is a footnote reference,\footnote{Here is the footnote. It can go
862 anywhere after the footnote reference. It need not be placed at the end of
863 the document.} and another.\footnote{Here's the long note. This one contains
866 Subsequent blocks are indented to show that they belong to the footnote (as
873 If you want, you can indent every line, but you can also be lazy and just
874 indent the first line of each block.} This should {\em not} be a footnote
875reference, because it contains a space.{[}\letterhat{}my note{]} Here is an
876inline note.\footnote{This is {\em easier} to type. Inline notes may contain
877 \useURL[31][http://google.com][][links]\from[31] and \type{]} verbatim
878 characters, as well as {[}bracketed text{]}.}
881Notes can go in quotes.\footnote{In quote.}
884\startitemize[n][stopper=.]
886 And in list items.\footnote{In list.}
889This 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