@@ -30,7 +30,7 @@ _@{\text\@}
30@title Pandoc Test Suite
30@title Pandoc Test Suite
31@author John MacFarlane
31@author John MacFarlane
32@author Anonymous
32@author Anonymous
33−July 17@comma{} 2006
33+July 17, 2006
34@end titlepage
34@end titlepage
@@ -64,28 +64,33 @@ This is a set of tests for pandoc. Most of them are adapted from John Gruber's m
65@node Headers
65@node Headers
66@chapter Headers
66@chapter Headers
68* Level 2 with an embedded link::
69* Level 2 with an embedded link::
71@node Level 2 with an embedded link
72@node Level 2 with an embedded link
72@section Level 2 with an @uref{/url,embedded link}
73@section Level 2 with an @uref{/url,embedded link}
74+@anchor{#level-2-with-an-embedded-link}
74* Level 3 with emphasis::
76* Level 3 with emphasis::
77@node Level 3 with emphasis
79@node Level 3 with emphasis
78@subsection Level 3 with @emph{emphasis}
80@subsection Level 3 with @emph{emphasis}
81+@anchor{#level-3-with-emphasis}
80* Level 4::
83* Level 4::
83@node Level 4
86@node Level 4
84@subsubsection Level 4
87@subsubsection Level 4
87@node Level 1
91@node Level 1
88@chapter Level 1
92@chapter Level 1
90* Level 2 with emphasis::
95* Level 2 with emphasis::
91* Level 2::
96* Level 2::
@@ -93,16 +98,19 @@ Level 5
94@node Level 2 with emphasis
99@node Level 2 with emphasis
95@section Level 2 with @emph{emphasis}
100@section Level 2 with @emph{emphasis}
101+@anchor{#level-2-with-emphasis}
97* Level 3::
103* Level 3::
100@node Level 3
106@node Level 3
101@subsection Level 3
107@subsection Level 3
102with no blank line
109with no blank line
104@node Level 2
111@node Level 2
105@section Level 2
112@section Level 2
106with no blank line
114with no blank line
@@ -114,6 +122,7 @@ with no blank line
115@node Paragraphs
123@node Paragraphs
116@chapter Paragraphs
124@chapter Paragraphs
117Here's a regular paragraph.
126Here's a regular paragraph.
119In Markdown 1.0.0 and earlier. Version 8. This line turns into a list item. Because a hard-wrapped line in the middle of a paragraph looked like a list item.
128In Markdown 1.0.0 and earlier. Version 8. This line turns into a list item. Because a hard-wrapped line in the middle of a paragraph looked like a list item.
@@ -131,6 +140,7 @@ There should be a hard line break@*here.
132@node Block Quotes
141@node Block Quotes
133@chapter Block Quotes
142@chapter Block Quotes
143+@anchor{#block-quotes}
134E-mail style:
144E-mail style:
136@quotation
146@quotation
@@ -138,6 +148,7 @@ This is a block quote. It is pretty short.
138@end quotation
148@end quotation
139@quotation
149@quotation
140Code in a block quote:
150Code in a block quote:
142sub status {
153sub status {
143 print "working";
154 print "working";
@@ -175,7 +186,9 @@ And a following paragraph.
176@node Code Blocks
187@node Code Blocks
177@chapter Code Blocks
188@chapter Code Blocks
189+@anchor{#code-blocks}
180---- (should be four hyphens)
193---- (should be four hyphens)
@@ -187,6 +200,7 @@ this code block is indented by one tab
187@end verbatim
200@end verbatim
191 this code block is indented by two tabs
205 this code block is indented by two tabs
@@ -202,6 +216,7 @@ These should not be escaped: \$ \\ \> \[ \{
203@node Lists
217@node Lists
204@chapter Lists
218@chapter Lists
206* Unordered::
221* Unordered::
207* Ordered::
222* Ordered::
@@ -212,6 +227,7 @@ These should not be escaped: \$ \\ \> \[ \{
213@node Unordered
228@node Unordered
214@section Unordered
229@section Unordered
215Asterisks tight:
231Asterisks tight:
@@ -289,6 +305,7 @@ Minus 3
290@node Ordered
306@node Ordered
291@section Ordered
307@section Ordered
294@enumerate
311@enumerate
@@ -343,7 +360,7 @@ Multiple paragraphs:
344@enumerate
361@enumerate
346−Item 1@comma{} graf one.
363+Item 1, graf one.
348Item 1. graf two. The quick brown fox jumped over the lazy dog's back.
365Item 1. graf two. The quick brown fox jumped over the lazy dog's back.
@@ -357,6 +374,7 @@ Item 3.
358@node Nested
375@node Nested
359@section Nested
376@section Nested
@@ -417,6 +435,7 @@ Third
418@node Tabs and spaces
436@node Tabs and spaces
419@section Tabs and spaces
437@section Tabs and spaces
438+@anchor{#tabs-and-spaces}
422this is a list item indented with tabs
441this is a list item indented with tabs
@@ -437,6 +456,7 @@ this is an example list item indented with spaces
438@node Fancy list markers
457@node Fancy list markers
439@section Fancy list markers
458@section Fancy list markers
459+@anchor{#fancy-list-markers}
440@enumerate 2
460@enumerate 2
442begins with 2
462begins with 2
@@ -447,7 +467,7 @@ with a continuation
448@enumerate 4
468@enumerate 4
450−sublist with roman numerals@comma{} starting with 4
470+sublist with roman numerals, starting with 4
452more items
472more items
453@enumerate A
473@enumerate A
@@ -512,6 +532,7 @@ B. Williams
513@node Definition Lists
533@node Definition Lists
514@chapter Definition Lists
534@chapter Definition Lists
535+@anchor{#definition-lists}
515Tight using spaces:
536Tight using spaces:
517@table @asis
538@table @asis
@@ -564,11 +585,12 @@ Multiple blocks with italics:
567−contains seeds@comma{} crisp@comma{} pleasant to taste
588+contains seeds, crisp, pleasant to taste
569@item @emph{orange}
590@item @emph{orange}
571orange fruit
592orange fruit
573{ orange code block }
595{ orange code block }
574@end verbatim
596@end verbatim
@@ -578,7 +600,7 @@ orange block quote
578@end quotation
600@end quotation
579@end table
601@end table
581−Multiple definitions@comma{} tight:
603+Multiple definitions, tight:
583@table @asis
605@table @asis
584@item apple
606@item apple
@@ -591,7 +613,7 @@ orange fruit
592@end table
614@end table
594−Multiple definitions@comma{} loose:
616+Multiple definitions, loose:
596@table @asis
618@table @asis
597@item apple
619@item apple
@@ -608,7 +630,7 @@ bank
609@end table
631@end table
611−Blank line after term@comma{} indented marker@comma{} alternate markers:
633+Blank line after term, indented marker, alternate markers:
613@table @asis
635@table @asis
614@item apple
636@item apple
@@ -632,6 +654,7 @@ sublist
633@node HTML Blocks
655@node HTML Blocks
634@chapter HTML Blocks
656@chapter HTML Blocks
657+@anchor{#html-blocks}
635Simple block on one line:
658Simple block on one line:
@@ -646,7 +669,8 @@ And this is @strong{strong}
646Here's a simple block:
669Here's a simple block:
649−This should be a code block@comma{} though:
672+This should be a code block, though:
@@ -654,11 +678,12 @@ This should be a code block@comma{} though:
654@end verbatim
678@end verbatim
656As should this:
680As should this:
658<div>foo</div>
683<div>foo</div>
659@end verbatim
684@end verbatim
661−Now@comma{} nested:
686+Now, nested:
664This should just be an HTML comment:
689This should just be an HTML comment:
@@ -666,13 +691,15 @@ This should just be an HTML comment:
666Multiline:
691Multiline:
668Code block:
693Code block:
670<!-- Comment -->
696<!-- Comment -->
671@end verbatim
697@end verbatim
673−Just plain comment@comma{} with trailing spaces on the line:
699+Just plain comment, with trailing spaces on the line:
678@end verbatim
705@end verbatim
@@ -688,9 +715,10 @@ Hr's:
689@node Inline Markup
716@node Inline Markup
690@chapter Inline Markup
717@chapter Inline Markup
718+@anchor{#inline-markup}
691−This is @emph{emphasized}@comma{} and so @emph{is this}.
719+This is @emph{emphasized}, and so @emph{is this}.
693−This is @strong{strong}@comma{} and so @strong{is this}.
721+This is @strong{strong}, and so @strong{is this}.
695An @emph{@uref{/url,emphasized link}}.
723An @emph{@uref{/url,emphasized link}}.
@@ -702,15 +730,15 @@ So is @strong{@emph{this}} word.
703So is @strong{@emph{this}} word.
731So is @strong{@emph{this}} word.
705−This is code: @code{>}@comma{} @code{$}@comma{} @code{\}@comma{} @code{\$}@comma{} @code{<html>}.
733+This is code: @code{>}, @code{$}, @code{\}, @code{\$}, @code{<html>}.
707@textstrikeout{This is @emph{strikeout}.}
735@textstrikeout{This is @emph{strikeout}.}
709Superscripts: a@textsuperscript{bc}d a@textsuperscript{@emph{hello}} a@textsuperscript{hello@ there}.
737Superscripts: a@textsuperscript{bc}d a@textsuperscript{@emph{hello}} a@textsuperscript{hello@ there}.
711−Subscripts: H@textsubscript{2}O@comma{} H@textsubscript{23}O@comma{} H@textsubscript{many@ of@ them}O.
739+Subscripts: H@textsubscript{2}O, H@textsubscript{23}O, H@textsubscript{many@ of@ them}O.
713−These should not be superscripts or subscripts@comma{} because of the unescaped spaces: a^b c^d@comma{} a~b c~d.
741+These should not be superscripts or subscripts, because of the unescaped spaces: a^b c^d, a~b c~d.
716@bigskip@hrule@bigskip
744@bigskip@hrule@bigskip
@@ -720,20 +748,21 @@ These should not be superscripts or subscripts@comma{} because of the unescaped
720@end ifnottex
748@end ifnottex
722@node Smart quotes ellipses dashes
750@node Smart quotes ellipses dashes
723−@chapter Smart quotes@comma{} ellipses@comma{} dashes
751+@chapter Smart quotes, ellipses, dashes
752+@anchor{#smart-quotes-ellipses-dashes}
724−``Hello@comma{}'' said the spider. ```Shelob' is my name.''
753+``Hello,'' said the spider. ```Shelob' is my name.''
726−`A'@comma{} `B'@comma{} and `C' are letters.
755+`A', `B', and `C' are letters.
728−`Oak@comma{}' `elm@comma{}' and `beech' are names of trees. So is `pine.'
757+`Oak,' `elm,' and `beech' are names of trees. So is `pine.'
730−`He said@comma{} ``I want to go.''' Were you alive in the 70's?
759+`He said, ``I want to go.''' Were you alive in the 70's?
732Here is some quoted `@code{code}' and a ``@uref{http://example.com/?foo=1&bar=2,quoted link}''.
761Here is some quoted `@code{code}' and a ``@uref{http://example.com/?foo=1&bar=2,quoted link}''.
734Some dashes: one---two --- three---four --- five.
763Some dashes: one---two --- three---four --- five.
736−Dashes between numbers: 5--7@comma{} 255--66@comma{} 1987--1999.
765+Dashes between numbers: 5--7, 255--66, 1987--1999.
738Ellipses@dots{}and@dots{}and@dots{}.
767Ellipses@dots{}and@dots{}and@dots{}.
@@ -746,6 +775,7 @@ Ellipses@dots{}and@dots{}and@dots{}.
747@node LaTeX
776@node LaTeX
748@chapter LaTeX
777@chapter LaTeX
@@ -771,9 +801,9 @@ These shouldn't be math:
774−To get the famous equation@comma{} write @code{$e = mc^2$}.
804+To get the famous equation, write @code{$e = mc^2$}.
776−$22@comma{}000 is a @emph{lot} of money. So is $34@comma{}000. (It worked if ``lot'' is emphasized.)
806+$22,000 is a @emph{lot} of money. So is $34,000. (It worked if ``lot'' is emphasized.)
778Shoes ($20) and socks ($5).
808Shoes ($20) and socks ($5).
@@ -798,6 +828,7 @@ Cat & 1 \\ \hline
799@node Special Characters
829@node Special Characters
800@chapter Special Characters
830@chapter Special Characters
831+@anchor{#special-characters}
801Here is some unicode:
832Here is some unicode:
@@ -864,6 +895,7 @@ Minus: -
865@node Links
896@node Links
866@chapter Links
897@chapter Links
868* Explicit::
900* Explicit::
869* Reference::
901* Reference::
@@ -873,6 +905,7 @@ Minus: -
874@node Explicit
906@node Explicit
875@section Explicit
907@section Explicit
876Just a @uref{/url/,URL}.
909Just a @uref{/url/,URL}.
878@uref{/url/,URL and title}.
911@uref{/url/,URL and title}.
@@ -893,6 +926,7 @@ Just a @uref{/url/,URL}.
894@node Reference
927@node Reference
895@section Reference
928@section Reference
896Foo @uref{/url/,bar}.
930Foo @uref{/url/,bar}.
898Foo @uref{/url/,bar}.
932Foo @uref{/url/,bar}.
@@ -910,6 +944,7 @@ Indented @uref{/url,twice}.
910Indented @uref{/url,thrice}.
944Indented @uref{/url,thrice}.
912This should [not][] be a link.
946This should [not][] be a link.
914[not]: /url
949[not]: /url
915@end verbatim
950@end verbatim
@@ -920,6 +955,7 @@ Foo @uref{/url/,biz}.
921@node With ampersands
956@node With ampersands
922@section With ampersands
957@section With ampersands
958+@anchor{#with-ampersands}
923Here's a @uref{http://example.com/?foo=1&bar=2,link with an ampersand in the URL}.
959Here's a @uref{http://example.com/?foo=1&bar=2,link with an ampersand in the URL}.
925Here's a link with an amersand in the link text: @uref{http://att.com/,AT&T}.
961Here's a link with an amersand in the link text: @uref{http://att.com/,AT&T}.
@@ -930,6 +966,7 @@ Here's an @uref{/script?foo=1&bar=2,inline link in pointy braces}.
931@node Autolinks
967@node Autolinks
932@section Autolinks
968@section Autolinks
933With an ampersand: @url{http://example.com/?foo=1&bar=2}
970With an ampersand: @url{http://example.com/?foo=1&bar=2}
@@ -947,6 +984,7 @@ An e-mail address: @uref{mailto:nobody@@nowhere.net,@code{nobody@@nowhere.net}}
947Blockquoted: @url{http://example.com/}
984Blockquoted: @url{http://example.com/}
948@end quotation
985@end quotation
949Auto-links should not occur here: @code{<http://example.com/>}
986Auto-links should not occur here: @code{<http://example.com/>}
951or here: <http://example.com/>
989or here: <http://example.com/>
952@end verbatim
990@end verbatim
@@ -960,6 +998,7 @@ or here: <http://example.com/>
961@node Images
999@node Images
962@chapter Images
1000@chapter Images
963From ``Voyage dans la Lune'' by Georges Melies (1902):
1002From ``Voyage dans la Lune'' by Georges Melies (1902):
@@ -978,14 +1017,16 @@ Here is a movie @image{movie,,,movie,jpg} icon.
979@node Footnotes
1018@node Footnotes
980@chapter Footnotes
1019@chapter Footnotes
981−Here is a footnote reference@comma{}@footnote{Here is the footnote. It can go anywhere after the footnote reference. It need not be placed at the end of the document.} and another.@footnote{Here's the long note. This one contains multiple blocks.
1021+Here is a footnote reference,@footnote{Here is the footnote. It can go anywhere after the footnote reference. It need not be placed at the end of the document.} and another.@footnote{Here's the long note. This one contains multiple blocks.
983Subsequent blocks are indented to show that they belong to the footnote (as with list items).
1023Subsequent blocks are indented to show that they belong to the footnote (as with list items).
984@verbatim
1025@verbatim
985 { <code> }
1026 { <code> }
986@end verbatim
1027@end verbatim
988−If you want@comma{} you can indent every line@comma{} but you can also be lazy and just indent the first line of each block.} This should @emph{not} be a footnote reference@comma{} because it contains a space.[^my note] Here is an inline note.@footnote{This is @emph{easier} to type. Inline notes may contain @uref{http://google.com,links} and @code{]} verbatim characters@comma{} as well as [bracketed text].}
1029+If you want, you can indent every line, but you can also be lazy and just indent the first line of each block.} This should @emph{not} be a footnote reference, because it contains a space.[^my note] Here is an inline note.@footnote{This is @emph{easier} to type. Inline notes may contain @uref{http://google.com,links} and @code{]} verbatim characters, as well as [bracketed text].}
990@quotation
1031@quotation
991Notes can go in quotes.@footnote{In quote.}
1032Notes can go in quotes.@footnote{In quote.}
@@ -995,6 +1036,6 @@ Notes can go in quotes.@footnote{In quote.}
995And in list items.@footnote{In list.}
1036And in list items.@footnote{In list.}
996@end enumerate
1037@end enumerate
998−This paragraph should not be part of the note@comma{} as it is not indented.
1039+This paragraph should not be part of the note, as it is not indented.