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[section] [style=\tfc,number=no]
20\setuphead[subsection] [style=\tfb,number=no]
21\setuphead[subsubsection][style=\bf,number=no]
25 [headstyle=bold, style=normal, location=hanging, width=broad, margin=1cm]
27\setupitemize[autointro] % prevent orphan list intro
28\setupitemize[indentnext=no]
30\setupthinrules[width=15em] % width of horizontal rules
34 [before={\blank[medium]},
35 after={\blank[medium]},
41\startalignment[center]
43 {\tfd Pandoc Test Suite}
45 {\tfa John MacFarlane\crlf Anonymous}
51This is a set of tests for pandoc. Most of them are adapted from John Gruber's
56\section[headers]{Headers}
58\subsection[level-2-with-an-embedded-link]{Level 2 with an
59\useURL[url1][/url][][embedded link]\from[url1]}
61\subsubsection[level-3-with-emphasis]{Level 3 with {\em emphasis}}
63\subsubsubsection[level-4]{Level 4}
65\subsubsubsubsection[level-5]{Level 5}
67\section[level-1]{Level 1}
69\subsection[level-2-with-emphasis]{Level 2 with {\em emphasis}}
71\subsubsection[level-3]{Level 3}
75\subsection[level-2]{Level 2}
81\section[paragraphs]{Paragraphs}
83Here's a regular paragraph.
85In Markdown 1.0.0 and earlier. Version 8. This line turns into a list item.
86Because a hard-wrapped line in the middle of a paragraph looked like a list
89Here's one with a bullet. * criminey.
91There should be a hard line break\crlf
96\section[block-quotes]{Block Quotes}
101This is a block quote. It is pretty short.
105Code in a block quote:
115\startitemize[n][stopper=.]
133This should not be a block quote: 2 \lettermore{} 1.
135And a following paragraph.
139\section[code-blocks]{Code Blocks}
144---- (should be four hyphens)
150this code block is indented by one tab
156 this code block is indented by two tabs
158These should not be escaped: \$ \\ \> \[ \{
163\section[lists]{Lists}
165\subsection[unordered]{Unordered}
233\subsection[ordered]{Ordered}
237\startitemize[n][stopper=.]
248\startitemize[n][stopper=.]
259\startitemize[n][stopper=.]
270\startitemize[n][stopper=.]
281\startitemize[n][stopper=.]
285 Item 1. graf two. The quick brown fox jumped over the lazy dog's back.
292\subsection[nested]{Nested}
309\startitemize[n][stopper=.]
326Same thing but with paragraphs:
328\startitemize[n][stopper=.]
346\subsection[tabs-and-spaces]{Tabs and spaces}
350 this is a list item indented with tabs
352 this is a list item indented with spaces
356 this is an example list item indented with tabs
358 this is an example list item indented with spaces
362\subsection[fancy-list-markers]{Fancy list markers}
364\startitemize[n][start=2,left=(,stopper=),width=2.0em]
372 \startitemize[r][start=4,stopper=.,width=2.0em]
374 sublist with roman numerals, starting with 4
377 \startitemize[A][left=(,stopper=),width=2.0em]
388\startitemize[A][stopper=.]
391 \startitemize[R][stopper=.]
394 \startitemize[n][start=6,left=(,stopper=),width=2.0em]
397 \startitemize[a][start=3,stopper=)]
399 Lower alpha with paren
418Should not be a list item:
426\section[definition-lists]{Definition Lists}
430\startdescription{apple}
434\startdescription{orange}
438\startdescription{banana}
444\startdescription{apple}
448\startdescription{orange}
452\startdescription{banana}
458\startdescription{apple}
462\startdescription{orange}
466\startdescription{banana}
470Multiple blocks with italics:
472\startdescription{{\em apple}}
475 contains seeds, crisp, pleasant to taste
478\startdescription{{\em orange}}
490Multiple definitions, tight:
492\startdescription{apple}
498\startdescription{orange}
504Multiple definitions, loose:
506\startdescription{apple}
512\startdescription{orange}
518Blank line after term, indented marker, alternate markers:
520\startdescription{apple}
526\startdescription{orange}
529 \startitemize[n][stopper=.]
537\section[html-blocks]{HTML Blocks}
539Simple block on one line:
542And nested without indentation:
546Interpreted markdown in a table:
548This is {\em emphasized}
549And this is {\bf strong}
550Here's a simple block:
553This should be a code block, though:
570This should just be an HTML comment:
580Just plain comment, with trailing spaces on the line:
592\section[inline-markup]{Inline Markup}
594This is {\em emphasized}, and so {\em is this}.
596This is {\bf strong}, and so {\bf is this}.
598An {\em \useURL[url2][/url][][emphasized link]\from[url2]}.
600{\bf {\em This is strong and em.}}
602So is {\bf {\em this}} word.
604{\bf {\em This is strong and em.}}
606So is {\bf {\em this}} word.
608This is code: \type{>}, \type{$}, \type{\}, \type{\$}, \type{<html>}.
610\overstrikes{This is {\em strikeout}.}
612Superscripts: a\high{bc}d a\high{{\em hello}} a\high{hello~there}.
614Subscripts: H\low{2}O, H\low{23}O, H\low{many~of~them}O.
616These should not be superscripts or subscripts, because of the unescaped
617spaces: a\letterhat{}b c\letterhat{}d, a\lettertilde{}b c\lettertilde{}d.
621\section[smart-quotes-ellipses-dashes]{Smart quotes, ellipses, dashes}
623\quotation{Hello,} said the spider. \quotation{\quote{Shelob} is my name.}
625\quote{A}, \quote{B}, and \quote{C} are letters.
627\quote{Oak,} \quote{elm,} and \quote{beech} are names of trees. So is
630\quote{He said, \quotation{I want to go.}} Were you alive in the 70's?
632Here is some quoted \quote{\type{code}} and a
633\quotation{\useURL[url3][http://example.com/?foo=1&bar=2][][quoted
636Some dashes: one---two --- three---four --- five.
638Dashes between numbers: 5--7, 255--66, 1987--1999.
640Ellipses\ldots{}and\ldots{}and\ldots{}.
644\section[latex]{LaTeX}
648 \cite[22-23]{smith.1899}
654 $\alpha \wedge \omega$
660 Here's some display math:
661 \startformula \frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h} \stopformula
663 Here's one that has a line break in it: $\alpha + \omega \times x^2$.
666These shouldn't be math:
670 To get the famous equation, write \type{$e = mc^2$}.
672 \$22,000 is a {\em lot} of money. So is \$34,000. (It worked if
673 \quotation{lot} is emphasized.)
675 Shoes (\$20) and socks (\$5).
677 Escaped \type{$}: \$73 {\em this should be emphasized} 23\$.
684\section[special-characters]{Special Characters}
701AT\&T has an ampersand in their name.
703AT\&T is another way to write it.
711Backslash: \letterbackslash{}
717Underscore: \letterunderscore{}
719Left brace: \letteropenbrace{}
721Right brace: \letterclosebrace{}
731Greater-than: \lettermore{}
745\section[links]{Links}
747\subsection[explicit]{Explicit}
749Just a \useURL[url4][/url/][][URL]\from[url4].
751\useURL[url5][/url/][][URL and title]\from[url5].
753\useURL[url6][/url/][][URL and title]\from[url6].
755\useURL[url7][/url/][][URL and title]\from[url7].
757\useURL[url8][/url/][][URL and title]\from[url8]
759\useURL[url9][/url/][][URL and title]\from[url9]
761\useURL[url10][/url/with_underscore][][with\letterunderscore{}underscore]\from[url10]
763\useURL[url11][mailto:nobody@nowhere.net][][Email link]\from[url11]
765\useURL[url12][][][Empty]\from[url12].
767\subsection[reference]{Reference}
769Foo \useURL[url13][/url/][][bar]\from[url13].
771Foo \useURL[url14][/url/][][bar]\from[url14].
773Foo \useURL[url15][/url/][][bar]\from[url15].
775With \useURL[url16][/url/][][embedded {[}brackets{]}]\from[url16].
777\useURL[url17][/url/][][b]\from[url17] by itself should be a link.
779Indented \useURL[url18][/url][][once]\from[url18].
781Indented \useURL[url19][/url][][twice]\from[url19].
783Indented \useURL[url20][/url][][thrice]\from[url20].
785This should {[}not{]}{[}{]} be a link.
791Foo \useURL[url21][/url/][][bar]\from[url21].
793Foo \useURL[url22][/url/][][biz]\from[url22].
795\subsection[with-ampersands]{With ampersands}
797Here's a \useURL[url23][http://example.com/?foo=1&bar=2][][link with an
798ampersand in the URL]\from[url23].
800Here's a link with an amersand in the link text:
801\useURL[url24][http://att.com/][][AT\&T]\from[url24].
803Here's an \useURL[url25][/script?foo=1&bar=2][][inline link]\from[url25].
805Here's an \useURL[url26][/script?foo=1&bar=2][][inline link in pointy
808\subsection[autolinks]{Autolinks}
811\useURL[url27][http://example.com/?foo=1&bar=2][][\hyphenatedurl{http://example.com/?foo=1\&bar=2}]\from[url27]
817 \useURL[url28][http://example.com/][][\hyphenatedurl{http://example.com/}]\from[url28]
823\useURL[url29][mailto:nobody@nowhere.net][][\hyphenatedurl{nobody@nowhere.net}]\from[url29]
827\useURL[url30][http://example.com/][][\hyphenatedurl{http://example.com/}]\from[url30]
830Auto-links should not occur here: \type{<http://example.com/>}
833or here: <http://example.com/>
838\section[images]{Images}
840From \quotation{Voyage dans la Lune} by Georges Melies (1902):
842\placefigure[here,nonumber]{lalune}{\externalfigure[lalune.jpg]}
844Here is a movie {\externalfigure[movie.jpg]} icon.
848\section[footnotes]{Footnotes}
850Here is a footnote reference,\footnote{Here is the footnote. It can go
851 anywhere after the footnote reference. It need not be placed at the end of
852 the document.} and another.\startbuffer Here's the long note. This one
853 contains multiple blocks.
855 Subsequent blocks are indented to show that they belong to the footnote (as
862 If you want, you can indent every line, but you can also be lazy and just
863 indent the first line of each block.\stopbuffer\footnote{\getbuffer} This
864should {\em not} be a footnote reference, because it contains a
865space.{[}\letterhat{}my note{]} Here is an inline note.\footnote{This is
866 {\em easier} to type. Inline notes may contain
867 \useURL[url31][http://google.com][][links]\from[url31] and \type{]} verbatim
868 characters, as well as {[}bracketed text{]}.}
871Notes can go in quotes.\footnote{In quote.}
874\startitemize[n][stopper=.]
876 And in list items.\footnote{In list.}
879This 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