git.iko.soy/typeable/pandoc
on 1.5.0.1 help sign in
typeable/pandoc/tests/writer.texinfo
1017 lines 14 kB history raw
1\input texinfo
2@documentencoding utf-8
4@macro textstrikeout{text}
5~~\text\~~
6@end macro
8@macro textsubscript{text}
9@iftex
10@textsubscript{\text\}
11@end iftex
12@ifnottex
13_@{\text\@}
14@end ifnottex
15@end macro
17@macro textsuperscript{text}
18@iftex
19@textsuperscript{\text\}
20@end iftex
21@ifnottex
22^@{\text\@}
23@end ifnottex
24@end macro
26@ifnottex
27@paragraphindent 0
28@end ifnottex
29@titlepage
30@title Pandoc Test Suite
31@author John MacFarlane
32@author Anonymous
33July 17@comma{} 2006
34@end titlepage
36@node Top
37@top Pandoc Test Suite
39This is a set of tests for pandoc. Most of them are adapted from John Gruber's markdown test suite.
41@iftex
42@bigskip@hrule@bigskip
43@end iftex
44@ifnottex
45------------------------------------------------------------------------
46@end ifnottex
47@menu
48* Headers::
49* Level 1::
50* Paragraphs::
51* Block Quotes::
52* Code Blocks::
53* Lists::
54* Definition Lists::
55* HTML Blocks::
56* Inline Markup::
57* Smart quotes ellipses dashes::
58* LaTeX::
59* Special Characters::
60* Links::
61* Images::
62* Footnotes::
63@end menu
65@node Headers
66@chapter Headers
67@menu
68* Level 2 with an embedded link::
69@end menu
71@node Level 2 with an embedded link
72@section Level 2 with an @uref{/url,embedded link}
73@menu
74* Level 3 with emphasis::
75@end menu
77@node Level 3 with emphasis
78@subsection Level 3 with @emph{emphasis}
79@menu
80* Level 4::
81@end menu
83@node Level 4
84@subsubsection Level 4
85Level 5
87@node Level 1
88@chapter Level 1
89@menu
90* Level 2 with emphasis::
91* Level 2::
92@end menu
94@node Level 2 with emphasis
95@section Level 2 with @emph{emphasis}
96@menu
97* Level 3::
98@end menu
100@node Level 3
101@subsection Level 3
102with no blank line
105@node Level 2
106@section Level 2
107with no blank line
109@iftex
110@bigskip@hrule@bigskip
111@end iftex
112@ifnottex
113------------------------------------------------------------------------
114@end ifnottex
116@node Paragraphs
117@chapter Paragraphs
118Here's a regular paragraph.
120In 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.
122Here's one with a bullet. * criminey.
124There should be a hard line break@*here.
126@iftex
127@bigskip@hrule@bigskip
128@end iftex
129@ifnottex
130------------------------------------------------------------------------
131@end ifnottex
133@node Block Quotes
134@chapter Block Quotes
135E-mail style:
137@quotation
138This is a block quote. It is pretty short.
140@end quotation
141@quotation
142Code in a block quote:
143@verbatim
144sub status {
145 print "working";
147@end verbatim
149A list:
151@enumerate
152@item
153item one
154@item
155item two
156@end enumerate
158Nested block quotes:
160@quotation
161nested
163@end quotation
164@quotation
165nested
167@end quotation
168@end quotation
169This should not be a block quote: 2 > 1.
171And a following paragraph.
173@iftex
174@bigskip@hrule@bigskip
175@end iftex
176@ifnottex
177------------------------------------------------------------------------
178@end ifnottex
180@node Code Blocks
181@chapter Code Blocks
182Code:
183@verbatim
184---- (should be four hyphens)
186sub status {
187 print "working";
190this code block is indented by one tab
191@end verbatim
193And:
194@verbatim
195 this code block is indented by two tabs
197These should not be escaped: \$ \\ \> \[ \{
198@end verbatim
200@iftex
201@bigskip@hrule@bigskip
202@end iftex
203@ifnottex
204------------------------------------------------------------------------
205@end ifnottex
207@node Lists
208@chapter Lists
209@menu
210* Unordered::
211* Ordered::
212* Nested::
213* Tabs and spaces::
214* Fancy list markers::
215@end menu
217@node Unordered
218@section Unordered
219Asterisks tight:
221@itemize
222@item
223asterisk 1
224@item
225asterisk 2
226@item
227asterisk 3
228@end itemize
230Asterisks loose:
232@itemize
233@item
234asterisk 1
236@item
237asterisk 2
239@item
240asterisk 3
242@end itemize
244Pluses tight:
246@itemize
247@item
248Plus 1
249@item
250Plus 2
251@item
252Plus 3
253@end itemize
255Pluses loose:
257@itemize
258@item
259Plus 1
261@item
262Plus 2
264@item
265Plus 3
267@end itemize
269Minuses tight:
271@itemize
272@item
273Minus 1
274@item
275Minus 2
276@item
277Minus 3
278@end itemize
280Minuses loose:
282@itemize
283@item
284Minus 1
286@item
287Minus 2
289@item
290Minus 3
292@end itemize
295@node Ordered
296@section Ordered
297Tight:
299@enumerate
300@item
301First
302@item
303Second
304@item
305Third
306@end enumerate
308and:
310@enumerate
311@item
312One
313@item
314Two
315@item
316Three
317@end enumerate
319Loose using tabs:
321@enumerate
322@item
323First
325@item
326Second
328@item
329Third
331@end enumerate
333and using spaces:
335@enumerate
336@item
337One
339@item
340Two
342@item
343Three
345@end enumerate
347Multiple paragraphs:
349@enumerate
350@item
351Item 1@comma{} graf one.
353Item 1. graf two. The quick brown fox jumped over the lazy dog's back.
355@item
356Item 2.
358@item
359Item 3.
361@end enumerate
364@node Nested
365@section Nested
366@itemize
367@item
368Tab
369@itemize
370@item
371Tab
372@itemize
373@item
374Tab
375@end itemize
377@end itemize
379@end itemize
381Here's another:
383@enumerate
384@item
385First
386@item
387Second:
388@itemize
389@item
390Fee
391@item
392Fie
393@item
394Foe
395@end itemize
397@item
398Third
399@end enumerate
401Same thing but with paragraphs:
403@enumerate
404@item
405First
407@item
408Second:
410@itemize
411@item
412Fee
413@item
414Fie
415@item
416Foe
417@end itemize
419@item
420Third
422@end enumerate
425@node Tabs and spaces
426@section Tabs and spaces
427@itemize
428@item
429this is a list item indented with tabs
431@item
432this is a list item indented with spaces
434@itemize
435@item
436this is an example list item indented with tabs
438@item
439this is an example list item indented with spaces
441@end itemize
443@end itemize
446@node Fancy list markers
447@section Fancy list markers
448@enumerate 2
449@item
450begins with 2
451@item
452and now 3
454with a continuation
456@enumerate 4
457@item
458sublist with roman numerals@comma{} starting with 4
459@item
460more items
461@enumerate A
462@item
463a subsublist
464@item
465a subsublist
466@end enumerate
468@end enumerate
470@end enumerate
472Nesting:
474@enumerate A
475@item
476Upper Alpha
477@enumerate
478@item
479Upper Roman.
480@enumerate 6
481@item
482Decimal start with 6
483@enumerate c
484@item
485Lower alpha with paren
486@end enumerate
488@end enumerate
490@end enumerate
492@end enumerate
494Autonumbering:
496@enumerate
497@item
498Autonumber.
499@item
500More.
501@enumerate
502@item
503Nested.
504@end enumerate
506@end enumerate
508Should not be a list item:
510M.A.@ 2007
512B. Williams
514@iftex
515@bigskip@hrule@bigskip
516@end iftex
517@ifnottex
518------------------------------------------------------------------------
519@end ifnottex
521@node Definition Lists
522@chapter Definition Lists
523Tight using spaces:
525@table @asis
526@item apple
528red fruit
529@item orange
531orange fruit
532@item banana
534yellow fruit
535@end table
537Tight using tabs:
539@table @asis
540@item apple
542red fruit
543@item orange
545orange fruit
546@item banana
548yellow fruit
549@end table
551Loose:
553@table @asis
554@item apple
556red fruit
558@item orange
560orange fruit
562@item banana
564yellow fruit
566@end table
568Multiple blocks with italics:
570@table @asis
571@item @emph{apple}
573red fruit
575contains seeds@comma{} crisp@comma{} pleasant to taste
577@item @emph{orange}
579orange fruit
580@verbatim
581{ orange code block }
582@end verbatim
584@quotation
585orange block quote
587@end quotation
588@end table
590Multiple definitions@comma{} tight:
592@table @asis
593@item apple
595red fruit
596computer
597@item orange
599orange fruit
600bank
601@end table
603Multiple definitions@comma{} loose:
605@table @asis
606@item apple
608red fruit
610computer
612@item orange
614orange fruit
616bank
618@end table
620Blank line after term@comma{} indented marker@comma{} alternate markers:
622@table @asis
623@item apple
625red fruit
627computer
629@item orange
631orange fruit
633@enumerate
634@item
635sublist
636@item
637sublist
638@end enumerate
640@end table
643@node HTML Blocks
644@chapter HTML Blocks
645Simple block on one line:
647foo
648And nested without indentation:
650foo
651bar
652Interpreted markdown in a table:
654This is @emph{emphasized}
655And this is @strong{strong}
656Here's a simple block:
658foo
659This should be a code block@comma{} though:
660@verbatim
661<div>
662 foo
663</div>
664@end verbatim
666As should this:
667@verbatim
668<div>foo</div>
669@end verbatim
671Now@comma{} nested:
673foo
674This should just be an HTML comment:
676Multiline:
678Code block:
679@verbatim
680<!-- Comment -->
681@end verbatim
683Just plain comment@comma{} with trailing spaces on the line:
685Code:
686@verbatim
687<hr />
688@end verbatim
690Hr's:
692@iftex
693@bigskip@hrule@bigskip
694@end iftex
695@ifnottex
696------------------------------------------------------------------------
697@end ifnottex
699@node Inline Markup
700@chapter Inline Markup
701This is @emph{emphasized}@comma{} and so @emph{is this}.
703This is @strong{strong}@comma{} and so @strong{is this}.
705An @emph{@uref{/url,emphasized link}}.
707@strong{@emph{This is strong and em.}}
709So is @strong{@emph{this}} word.
711@strong{@emph{This is strong and em.}}
713So is @strong{@emph{this}} word.
715This is code: @code{>}@comma{} @code{$}@comma{} @code{\}@comma{} @code{\$}@comma{} @code{<html>}.
717@textstrikeout{This is @emph{strikeout}.}
719Superscripts: a@textsuperscript{bc}d a@textsuperscript{@emph{hello}} a@textsuperscript{hello@ there}.
721Subscripts: H@textsubscript{2}O@comma{} H@textsubscript{23}O@comma{} H@textsubscript{many@ of@ them}O.
723These should not be superscripts or subscripts@comma{} because of the unescaped spaces: a^b c^d@comma{} a~b c~d.
725@iftex
726@bigskip@hrule@bigskip
727@end iftex
728@ifnottex
729------------------------------------------------------------------------
730@end ifnottex
732@node Smart quotes ellipses dashes
733@chapter Smart quotes@comma{} ellipses@comma{} dashes
734``Hello@comma{}'' said the spider. ```Shelob' is my name.''
736`A'@comma{} `B'@comma{} and `C' are letters.
738`Oak@comma{}' `elm@comma{}' and `beech' are names of trees. So is `pine.'
740`He said@comma{} ``I want to go.''' Were you alive in the 70's?
742Here is some quoted `@code{code}' and a ``@uref{http://example.com/?foo=1&bar=2,quoted link}''.
744Some dashes: one---two --- three---four --- five.
746Dashes between numbers: 5--7@comma{} 255--66@comma{} 1987--1999.
748Ellipses@dots{}and@dots{}and@dots{}.
750@iftex
751@bigskip@hrule@bigskip
752@end iftex
753@ifnottex
754------------------------------------------------------------------------
755@end ifnottex
757@node LaTeX
758@chapter LaTeX
759@itemize
760@item
761@tex
762\cite[22-23]{smith.1899}
763@end tex
764@item
765@math{2+2=4}
766@item
767@math{x \in y}
768@item
769@math{\alpha \wedge \omega}
770@item
771@math{223}
772@item
773@math{p}-Tree
774@item
775Here's some display math: @math{\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}}
776@item
777Here's one that has a line break in it: @math{\alpha + \omega \times x^2}.
778@end itemize
780These shouldn't be math:
782@itemize
783@item
784To get the famous equation@comma{} write @code{$e = mc^2$}.
785@item
786$22@comma{}000 is a @emph{lot} of money. So is $34@comma{}000. (It worked if ``lot'' is emphasized.)
787@item
788Shoes ($20) and socks ($5).
789@item
790Escaped @code{$}: $73 @emph{this should be emphasized} 23$.
791@end itemize
793Here's a LaTeX table:
795@tex
796\begin{tabular}{|l|l|}\hline
797Animal & Number \\ \hline
798Dog & 2 \\
799Cat & 1 \\ \hline
800\end{tabular}
801@end tex
803@iftex
804@bigskip@hrule@bigskip
805@end iftex
806@ifnottex
807------------------------------------------------------------------------
808@end ifnottex
810@node Special Characters
811@chapter Special Characters
812Here is some unicode:
814@itemize
815@item
816I hat: Î
817@item
818o umlaut: ö
819@item
820section: §
821@item
822set membership: ∈
823@item
824copyright: ©
825@end itemize
827AT&T has an ampersand in their name.
829AT&T is another way to write it.
831This & that.
8334 < 5.
8356 > 5.
837Backslash: \
839Backtick: `
841Asterisk: *
843Underscore: _
845Left brace: @{
847Right brace: @}
849Left bracket: [
851Right bracket: ]
853Left paren: (
855Right paren: )
857Greater-than: >
859Hash: #
861Period: .
863Bang: !
865Plus: +
867Minus: -
869@iftex
870@bigskip@hrule@bigskip
871@end iftex
872@ifnottex
873------------------------------------------------------------------------
874@end ifnottex
876@node Links
877@chapter Links
878@menu
879* Explicit::
880* Reference::
881* With ampersands::
882* Autolinks::
883@end menu
885@node Explicit
886@section Explicit
887Just a @uref{/url/,URL}.
889@uref{/url/,URL and title}.
891@uref{/url/,URL and title}.
893@uref{/url/,URL and title}.
895@uref{/url/,URL and title}
897@uref{/url/,URL and title}
899@uref{/url/with_underscore,with_underscore}
901@uref{mailto:nobody@@nowhere.net,Email link}
903@uref{,Empty}.
906@node Reference
907@section Reference
908Foo @uref{/url/,bar}.
910Foo @uref{/url/,bar}.
912Foo @uref{/url/,bar}.
914With @uref{/url/,embedded [brackets]}.
916@uref{/url/,b} by itself should be a link.
918Indented @uref{/url,once}.
920Indented @uref{/url,twice}.
922Indented @uref{/url,thrice}.
924This should [not][] be a link.
925@verbatim
926[not]: /url
927@end verbatim
929Foo @uref{/url/,bar}.
931Foo @uref{/url/,biz}.
934@node With ampersands
935@section With ampersands
936Here's a @uref{http://example.com/?foo=1&bar=2,link with an ampersand in the URL}.
938Here's a link with an amersand in the link text: @uref{http://att.com/,AT&T}.
940Here's an @uref{/script?foo=1&bar=2,inline link}.
942Here's an @uref{/script?foo=1&bar=2,inline link in pointy braces}.
945@node Autolinks
946@section Autolinks
947With an ampersand: @url{http://example.com/?foo=1&bar=2}
949@itemize
950@item
951In a list?
952@item
953@url{http://example.com/}
954@item
955It should.
956@end itemize
958An e-mail address: @uref{mailto:nobody@@nowhere.net,@code{nobody@@nowhere.net}}
960@quotation
961Blockquoted: @url{http://example.com/}
963@end quotation
964Auto-links should not occur here: @code{<http://example.com/>}
965@verbatim
966or here: <http://example.com/>
967@end verbatim
969@iftex
970@bigskip@hrule@bigskip
971@end iftex
972@ifnottex
973------------------------------------------------------------------------
974@end ifnottex
976@node Images
977@chapter Images
978From ``Voyage dans la Lune'' by Georges Melies (1902):
980@float
981@image{lalune,,,lalune,jpg}
982@caption{lalune}
983@end float
985Here is a movie @image{movie,,,movie,jpg} icon.
987@iftex
988@bigskip@hrule@bigskip
989@end iftex
990@ifnottex
991------------------------------------------------------------------------
992@end ifnottex
994@node Footnotes
995@chapter Footnotes
996Here 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.
998Subsequent blocks are indented to show that they belong to the footnote (as with list items).
999@verbatim
1000 { <code> }
1001@end verbatim
1003If 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].}
1005@quotation
1006Notes can go in quotes.@footnote{In quote.}
1008@end quotation
1009@enumerate
1010@item
1011And in list items.@footnote{In list.}
1012@end enumerate
1014This paragraph should not be part of the note@comma{} as it is not indented.
1016@bye