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 title block commands
19\def\doctitle#1{\gdef\@title{#1}}
20\def\author#1{\gdef\@author{#1}}
21\def\date#1{\gdef\@date{#1}}
22\date{\currentdate} % Default to today unless specified otherwise.
24 \startalignment[center]
35% define descr (for definition lists)
36\definedescription[descr][
37 headstyle=bold,style=normal,align=left,location=hanging,
38 width=broad,margin=1cm]
40% prevent orphaned list intros
41\setupitemize[autointro]
43% define defaults for bulleted lists
44\setupitemize[1][symbol=1][indentnext=no]
45\setupitemize[2][symbol=2][indentnext=no]
46\setupitemize[3][symbol=3][indentnext=no]
47\setupitemize[4][symbol=4][indentnext=no]
49\setupthinrules[width=15em] % width of horizontal rules
59[\v!blockquote][\v!quotation]
65before={\blank[medium]},
66after={\blank[medium]},
72\doctitle{Pandoc Test Suite}
73\author{John MacFarlane \& Anonymous}
78This is a set of tests for pandoc. Most of them are adapted from
79John Gruber's markdown test suite.
85\subsubject{Level 2 with an \useURL[1][/url][][embedded link]\from[1]}
87\subsubsubject{Level 3 with {\em emphasis}}
89\subsubsubsubject{Level 4}
91\subsubsubsubsubject{Level 5}
95\subsubject{Level 2 with {\em emphasis}}
97\subsubsubject{Level 3}
109Here's a regular paragraph.
111In Markdown 1.0.0 and earlier. Version 8. This line turns into a
112list item. Because a hard-wrapped line in the middle of a paragraph
113looked like a list item.
115Here's one with a bullet. * criminey.
117There should be a hard line break\crlf
122\subject{Block Quotes}
127This is a block quote. It is pretty short.
131Code in a block quote:
141\startitemize[n][stopper=.]
159This should not be a block quote: 2 \lettermore{} 1.
161And a following paragraph.
170---- (should be four hyphens)
176this code block is indented by one tab
182 this code block is indented by two tabs
184These should not be escaped: \$ \\ \> \[ \{
191\subsubject{Unordered}
263\startitemize[n][stopper=.]
274\startitemize[n][stopper=.]
285\startitemize[n][stopper=.]
296\startitemize[n][stopper=.]
307\startitemize[n][stopper=.]
311 Item 1. graf two. The quick brown fox jumped over the lazy dog's
336\startitemize[n][stopper=.]
353Same thing but with paragraphs:
355\startitemize[n][stopper=.]
373\subsubject{Tabs and spaces}
377 this is a list item indented with tabs
379 this is a list item indented with spaces
383 this is an example list item indented with tabs
385 this is an example list item indented with spaces
389\subsubject{Fancy list markers}
391\startitemize[n][start=2,left=(,stopper=),width=2.0em]
399 \startitemize[r][start=4,stopper=.,width=2.0em]
401 sublist with roman numerals, starting with 4
404 \startitemize[A][left=(,stopper=),width=2.0em]
415\startitemize[A][stopper=.]
418 \startitemize[R][stopper=.]
421 \startitemize[n][start=6,left=(,stopper=),width=2.0em]
424 \startitemize[a][start=3,stopper=)]
426 Lower alpha with paren
445Should not be a list item:
453\subject{Definition Lists}
497Multiple blocks with italics:
499\startdescr{{\em apple}}
502contains seeds, crisp, pleasant to taste
505\startdescr{{\em orange}}
519Simple block on one line:
522And nested without indentation:
526Interpreted markdown in a table:
528This is {\em emphasized}
529And this is {\bf strong}
530Here's a simple block:
533This should be a code block, though:
550This should just be an HTML comment:
560Just plain comment, with trailing spaces on the line:
572\subject{Inline Markup}
574This is {\em emphasized}, and so {\em is this}.
576This is {\bf strong}, and so {\bf is this}.
578An {\em \useURL[2][/url][][emphasized link]\from[2]}.
580{\bf {\em This is strong and em.}}
582So is {\bf {\em this}} word.
584{\bf {\em This is strong and em.}}
586So is {\bf {\em this}} word.
588This is code: \type{>}, \type{$}, \type{\}, \type{\$},
591\overstrikes{This is {\em strikeout}.}
593Superscripts: a\high{bc}d a\high{{\em hello}} a\high{hello~there}.
595Subscripts: H\low{2}O, H\low{23}O, H\low{many~of~them}O.
597These should not be superscripts or subscripts, because of the
598unescaped spaces: a\letterhat{}b c\letterhat{}d, a\lettertilde{}b
603\subject{Smart quotes, ellipses, dashes}
605\quotation{Hello,} said the spider.
606\quotation{\quote{Shelob} is my name.}
608\quote{A}, \quote{B}, and \quote{C} are letters.
610\quote{Oak,} \quote{elm,} and \quote{beech} are names of trees. So
613\quote{He said, \quotation{I want to go.}} Were you alive in the
616Here is some quoted \quote{\type{code}} and a
617\quotation{\useURL[3][http://example.com/?foo=1&bar=2][][quoted link]\from[3]}.
619Some dashes: one---two --- three---four --- five.
621Dashes between numbers: 5--7, 255--66, 1987--1999.
623Ellipses\ldots{}and\ldots{}and\ldots{}.
631 \cite[22-23]{smith.1899}
637 $\alpha \wedge \omega$
643 Here's some display math:
644 \startformula \frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h} \stopformula
646 Here's one that has a line break in it:
647 $\alpha + \omega \times x^2$.
650These shouldn't be math:
654 To get the famous equation, write \type{$e = mc^2$}.
656 \$22,000 is a {\em lot} of money. So is \$34,000. (It worked if
657 \quotation{lot} is emphasized.)
659 Shoes (\$20) and socks (\$5).
661 Escaped \type{$}: \$73 {\em this should be emphasized} 23\$.
666\begin{tabular}{|l|l|}\hline
667Animal & Number \\ \hline
674\subject{Special Characters}
691AT\&T has an ampersand in their name.
693AT\&T is another way to write it.
701Backslash: \letterbackslash{}
707Underscore: \letterunderscore{}
709Left brace: \letteropenbrace{}
711Right brace: \letterclosebrace{}
721Greater-than: \lettermore{}
739Just a \useURL[4][/url/][][URL]\from[4].
741\useURL[5][/url/][][URL and title]\from[5].
743\useURL[6][/url/][][URL and title]\from[6].
745\useURL[7][/url/][][URL and title]\from[7].
747\useURL[8][/url/][][URL and title]\from[8]
749\useURL[9][/url/][][URL and title]\from[9]
751\useURL[10][/url/with_underscore][][with\letterunderscore{}underscore]\from[10]
753\useURL[11][mailto:nobody@nowhere.net][][Email link]\from[11]
755\useURL[12][][][Empty]\from[12].
757\subsubject{Reference}
759Foo \useURL[13][/url/][][bar]\from[13].
761Foo \useURL[14][/url/][][bar]\from[14].
763Foo \useURL[15][/url/][][bar]\from[15].
765With \useURL[16][/url/][][embedded [brackets]]\from[16].
767\useURL[17][/url/][][b]\from[17] by itself should be a link.
769Indented \useURL[18][/url][][once]\from[18].
771Indented \useURL[19][/url][][twice]\from[19].
773Indented \useURL[20][/url][][thrice]\from[20].
775This should [not][] be a link.
781Foo \useURL[21][/url/][][bar]\from[21].
783Foo \useURL[22][/url/][][biz]\from[22].
785\subsubject{With ampersands}
788\useURL[23][http://example.com/?foo=1&bar=2][][link with an ampersand in the URL]\from[23].
790Here's a link with an amersand in the link text:
791\useURL[24][http://att.com/][][AT\&T]\from[24].
793Here's an \useURL[25][/script?foo=1&bar=2][][inline link]\from[25].
796\useURL[26][/script?foo=1&bar=2][][inline link in pointy braces]\from[26].
798\subsubject{Autolinks}
801\useURL[27][http://example.com/?foo=1&bar=2][][http://example.com/?foo=1\&bar=2]\from[27]
807 \useURL[28][http://example.com/][][http://example.com/]\from[28]
813\useURL[29][mailto:nobody@nowhere.net][][nobody@nowhere.net]\from[29]
817\useURL[30][http://example.com/][][http://example.com/]\from[30]
820Auto-links should not occur here: \type{<http://example.com/>}
823or here: <http://example.com/>
830From \quotation{Voyage dans la Lune} by Georges Melies (1902):
836{\externalfigure[lalune.jpg]}
843{\externalfigure[movie.jpg]} icon.
849Here is a footnote reference,
850\footnote{Here is the footnote. It can go anywhere after the footnote
851reference. It need not be placed at the end of the document.}
853\footnote{Here's the long note. This one contains multiple blocks.
855Subsequent blocks are indented to show that they belong to the
856footnote (as with list items).
862If you want, you can indent every line, but you can also be lazy
863and just indent the first line of each block.}
864This should {\em not} be a footnote reference, because it contains
865a space.[\letterhat{}my note] Here is an inline note.
866\footnote{This is {\em easier} to type. Inline notes may contain
867\useURL[31][http://google.com][][links]\from[31] and \type{]}
868verbatim characters, as well as [bracketed text].}
871Notes can go in quotes.
875\startitemize[n][stopper=.]
881This paragraph should not be part of the note, as it is not
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