git.iko.soy/typeable/pandoc
on 1.9.0.5 help sign in
typeable/pandoc/tests/writer.texinfo
1000 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
104@node Level 2
105@section Level 2
106with no blank line
108@iftex
109@bigskip@hrule@bigskip
110@end iftex
111@ifnottex
112------------------------------------------------------------------------
113@end ifnottex
115@node Paragraphs
116@chapter Paragraphs
117Here'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.
121Here's one with a bullet. * criminey.
123There should be a hard line break@*here.
125@iftex
126@bigskip@hrule@bigskip
127@end iftex
128@ifnottex
129------------------------------------------------------------------------
130@end ifnottex
132@node Block Quotes
133@chapter Block Quotes
134E-mail style:
136@quotation
137This is a block quote. It is pretty short.
138@end quotation
139@quotation
140Code in a block quote:
141@verbatim
142sub status {
143 print "working";
145@end verbatim
147A list:
149@enumerate
150@item
151item one
152@item
153item two
154@end enumerate
156Nested block quotes:
158@quotation
159nested
160@end quotation
161@quotation
162nested
163@end quotation
164@end quotation
165This should not be a block quote: 2 > 1.
167And a following paragraph.
169@iftex
170@bigskip@hrule@bigskip
171@end iftex
172@ifnottex
173------------------------------------------------------------------------
174@end ifnottex
176@node Code Blocks
177@chapter Code Blocks
178Code:
179@verbatim
180---- (should be four hyphens)
182sub status {
183 print "working";
186this code block is indented by one tab
187@end verbatim
189And:
190@verbatim
191 this code block is indented by two tabs
193These should not be escaped: \$ \\ \> \[ \{
194@end verbatim
196@iftex
197@bigskip@hrule@bigskip
198@end iftex
199@ifnottex
200------------------------------------------------------------------------
201@end ifnottex
203@node Lists
204@chapter Lists
205@menu
206* Unordered::
207* Ordered::
208* Nested::
209* Tabs and spaces::
210* Fancy list markers::
211@end menu
213@node Unordered
214@section Unordered
215Asterisks tight:
217@itemize
218@item
219asterisk 1
220@item
221asterisk 2
222@item
223asterisk 3
224@end itemize
226Asterisks loose:
228@itemize
229@item
230asterisk 1
232@item
233asterisk 2
235@item
236asterisk 3
238@end itemize
240Pluses tight:
242@itemize
243@item
244Plus 1
245@item
246Plus 2
247@item
248Plus 3
249@end itemize
251Pluses loose:
253@itemize
254@item
255Plus 1
257@item
258Plus 2
260@item
261Plus 3
263@end itemize
265Minuses tight:
267@itemize
268@item
269Minus 1
270@item
271Minus 2
272@item
273Minus 3
274@end itemize
276Minuses loose:
278@itemize
279@item
280Minus 1
282@item
283Minus 2
285@item
286Minus 3
288@end itemize
290@node Ordered
291@section Ordered
292Tight:
294@enumerate
295@item
296First
297@item
298Second
299@item
300Third
301@end enumerate
303and:
305@enumerate
306@item
307One
308@item
309Two
310@item
311Three
312@end enumerate
314Loose using tabs:
316@enumerate
317@item
318First
320@item
321Second
323@item
324Third
326@end enumerate
328and using spaces:
330@enumerate
331@item
332One
334@item
335Two
337@item
338Three
340@end enumerate
342Multiple paragraphs:
344@enumerate
345@item
346Item 1@comma{} graf one.
348Item 1. graf two. The quick brown fox jumped over the lazy dog's back.
350@item
351Item 2.
353@item
354Item 3.
356@end enumerate
358@node Nested
359@section Nested
360@itemize
361@item
362Tab
363@itemize
364@item
365Tab
366@itemize
367@item
368Tab
369@end itemize
371@end itemize
373@end itemize
375Here's another:
377@enumerate
378@item
379First
380@item
381Second:
382@itemize
383@item
384Fee
385@item
386Fie
387@item
388Foe
389@end itemize
391@item
392Third
393@end enumerate
395Same thing but with paragraphs:
397@enumerate
398@item
399First
401@item
402Second:
404@itemize
405@item
406Fee
407@item
408Fie
409@item
410Foe
411@end itemize
413@item
414Third
416@end enumerate
418@node Tabs and spaces
419@section Tabs and spaces
420@itemize
421@item
422this is a list item indented with tabs
424@item
425this is a list item indented with spaces
427@itemize
428@item
429this is an example list item indented with tabs
431@item
432this is an example list item indented with spaces
434@end itemize
436@end itemize
438@node Fancy list markers
439@section Fancy list markers
440@enumerate 2
441@item
442begins with 2
443@item
444and now 3
446with a continuation
448@enumerate 4
449@item
450sublist with roman numerals@comma{} starting with 4
451@item
452more items
453@enumerate A
454@item
455a subsublist
456@item
457a subsublist
458@end enumerate
460@end enumerate
462@end enumerate
464Nesting:
466@enumerate A
467@item
468Upper Alpha
469@enumerate
470@item
471Upper Roman.
472@enumerate 6
473@item
474Decimal start with 6
475@enumerate c
476@item
477Lower alpha with paren
478@end enumerate
480@end enumerate
482@end enumerate
484@end enumerate
486Autonumbering:
488@enumerate
489@item
490Autonumber.
491@item
492More.
493@enumerate
494@item
495Nested.
496@end enumerate
498@end enumerate
500Should not be a list item:
502M.A.@ 2007
504B. Williams
506@iftex
507@bigskip@hrule@bigskip
508@end iftex
509@ifnottex
510------------------------------------------------------------------------
511@end ifnottex
513@node Definition Lists
514@chapter Definition Lists
515Tight using spaces:
517@table @asis
518@item apple
520red fruit
521@item orange
523orange fruit
524@item banana
526yellow fruit
527@end table
529Tight using tabs:
531@table @asis
532@item apple
534red fruit
535@item orange
537orange fruit
538@item banana
540yellow fruit
541@end table
543Loose:
545@table @asis
546@item apple
548red fruit
550@item orange
552orange fruit
554@item banana
556yellow fruit
558@end table
560Multiple blocks with italics:
562@table @asis
563@item @emph{apple}
565red fruit
567contains seeds@comma{} crisp@comma{} pleasant to taste
569@item @emph{orange}
571orange fruit
572@verbatim
573{ orange code block }
574@end verbatim
576@quotation
577orange block quote
578@end quotation
579@end table
581Multiple definitions@comma{} tight:
583@table @asis
584@item apple
586red fruit
587computer
588@item orange
590orange fruit
591bank
592@end table
594Multiple definitions@comma{} loose:
596@table @asis
597@item apple
599red fruit
601computer
603@item orange
605orange fruit
607bank
609@end table
611Blank line after term@comma{} indented marker@comma{} alternate markers:
613@table @asis
614@item apple
616red fruit
618computer
620@item orange
622orange fruit
624@enumerate
625@item
626sublist
627@item
628sublist
629@end enumerate
631@end table
633@node HTML Blocks
634@chapter HTML Blocks
635Simple block on one line:
637foo
638And nested without indentation:
640foo
641bar
642Interpreted markdown in a table:
644This is @emph{emphasized}
645And this is @strong{strong}
646Here's a simple block:
648foo
649This should be a code block@comma{} though:
650@verbatim
651<div>
652 foo
653</div>
654@end verbatim
656As should this:
657@verbatim
658<div>foo</div>
659@end verbatim
661Now@comma{} nested:
663foo
664This should just be an HTML comment:
666Multiline:
668Code block:
669@verbatim
670<!-- Comment -->
671@end verbatim
673Just plain comment@comma{} with trailing spaces on the line:
675Code:
676@verbatim
677<hr />
678@end verbatim
680Hr's:
682@iftex
683@bigskip@hrule@bigskip
684@end iftex
685@ifnottex
686------------------------------------------------------------------------
687@end ifnottex
689@node Inline Markup
690@chapter Inline Markup
691This is @emph{emphasized}@comma{} and so @emph{is this}.
693This is @strong{strong}@comma{} and so @strong{is this}.
695An @emph{@uref{/url,emphasized link}}.
697@strong{@emph{This is strong and em.}}
699So is @strong{@emph{this}} word.
701@strong{@emph{This is strong and em.}}
703So is @strong{@emph{this}} word.
705This is code: @code{>}@comma{} @code{$}@comma{} @code{\}@comma{} @code{\$}@comma{} @code{<html>}.
707@textstrikeout{This is @emph{strikeout}.}
709Superscripts: a@textsuperscript{bc}d a@textsuperscript{@emph{hello}} a@textsuperscript{hello@ there}.
711Subscripts: H@textsubscript{2}O@comma{} H@textsubscript{23}O@comma{} H@textsubscript{many@ of@ them}O.
713These should not be superscripts or subscripts@comma{} because of the unescaped spaces: a^b c^d@comma{} a~b c~d.
715@iftex
716@bigskip@hrule@bigskip
717@end iftex
718@ifnottex
719------------------------------------------------------------------------
720@end ifnottex
722@node Smart quotes ellipses dashes
723@chapter Smart quotes@comma{} ellipses@comma{} dashes
724``Hello@comma{}'' said the spider. ```Shelob' is my name.''
726`A'@comma{} `B'@comma{} and `C' are letters.
728`Oak@comma{}' `elm@comma{}' and `beech' are names of trees. So is `pine.'
730`He said@comma{} ``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}''.
734Some dashes: one---two --- three---four --- five.
736Dashes between numbers: 5--7@comma{} 255--66@comma{} 1987--1999.
738Ellipses@dots{}and@dots{}and@dots{}.
740@iftex
741@bigskip@hrule@bigskip
742@end iftex
743@ifnottex
744------------------------------------------------------------------------
745@end ifnottex
747@node LaTeX
748@chapter LaTeX
749@itemize
750@item
751@tex
752\cite[22-23]{smith.1899}
753@end tex
754@item
755@math{2+2=4}
756@item
757@math{x \in y}
758@item
759@math{\alpha \wedge \omega}
760@item
761@math{223}
762@item
763@math{p}-Tree
764@item
765Here's some display math: @math{\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}}
766@item
767Here's one that has a line break in it: @math{\alpha + \omega \times x^2}.
768@end itemize
770These shouldn't be math:
772@itemize
773@item
774To get the famous equation@comma{} write @code{$e = mc^2$}.
775@item
776$22@comma{}000 is a @emph{lot} of money. So is $34@comma{}000. (It worked if ``lot'' is emphasized.)
777@item
778Shoes ($20) and socks ($5).
779@item
780Escaped @code{$}: $73 @emph{this should be emphasized} 23$.
781@end itemize
783Here's a LaTeX table:
785@tex
786\begin{tabular}{|l|l|}\hline
787Animal & Number \\ \hline
788Dog & 2 \\
789Cat & 1 \\ \hline
790\end{tabular}
791@end tex
792@iftex
793@bigskip@hrule@bigskip
794@end iftex
795@ifnottex
796------------------------------------------------------------------------
797@end ifnottex
799@node Special Characters
800@chapter Special Characters
801Here is some unicode:
803@itemize
804@item
805I hat: Î
806@item
807o umlaut: ö
808@item
809section: §
810@item
811set membership: ∈
812@item
813copyright: ©
814@end itemize
816AT&T has an ampersand in their name.
818AT&T is another way to write it.
820This & that.
8224 < 5.
8246 > 5.
826Backslash: \
828Backtick: `
830Asterisk: *
832Underscore: _
834Left brace: @{
836Right brace: @}
838Left bracket: [
840Right bracket: ]
842Left paren: (
844Right paren: )
846Greater-than: >
848Hash: #
850Period: .
852Bang: !
854Plus: +
856Minus: -
858@iftex
859@bigskip@hrule@bigskip
860@end iftex
861@ifnottex
862------------------------------------------------------------------------
863@end ifnottex
865@node Links
866@chapter Links
867@menu
868* Explicit::
869* Reference::
870* With ampersands::
871* Autolinks::
872@end menu
874@node Explicit
875@section Explicit
876Just a @uref{/url/,URL}.
878@uref{/url/,URL and title}.
880@uref{/url/,URL and title}.
882@uref{/url/,URL and title}.
884@uref{/url/,URL and title}
886@uref{/url/,URL and title}
888@uref{/url/with_underscore,with_underscore}
890@uref{mailto:nobody@@nowhere.net,Email link}
892@uref{,Empty}.
894@node Reference
895@section Reference
896Foo @uref{/url/,bar}.
898Foo @uref{/url/,bar}.
900Foo @uref{/url/,bar}.
902With @uref{/url/,embedded [brackets]}.
904@uref{/url/,b} by itself should be a link.
906Indented @uref{/url,once}.
908Indented @uref{/url,twice}.
910Indented @uref{/url,thrice}.
912This should [not][] be a link.
913@verbatim
914[not]: /url
915@end verbatim
917Foo @uref{/url/,bar}.
919Foo @uref{/url/,biz}.
921@node With ampersands
922@section With ampersands
923Here'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}.
927Here's an @uref{/script?foo=1&bar=2,inline link}.
929Here's an @uref{/script?foo=1&bar=2,inline link in pointy braces}.
931@node Autolinks
932@section Autolinks
933With an ampersand: @url{http://example.com/?foo=1&bar=2}
935@itemize
936@item
937In a list?
938@item
939@url{http://example.com/}
940@item
941It should.
942@end itemize
944An e-mail address: @uref{mailto:nobody@@nowhere.net,@code{nobody@@nowhere.net}}
946@quotation
947Blockquoted: @url{http://example.com/}
948@end quotation
949Auto-links should not occur here: @code{<http://example.com/>}
950@verbatim
951or here: <http://example.com/>
952@end verbatim
954@iftex
955@bigskip@hrule@bigskip
956@end iftex
957@ifnottex
958------------------------------------------------------------------------
959@end ifnottex
961@node Images
962@chapter Images
963From ``Voyage dans la Lune'' by Georges Melies (1902):
965@float
966@image{lalune,,,lalune,jpg}
967@caption{lalune}
968@end float
970Here is a movie @image{movie,,,movie,jpg} icon.
972@iftex
973@bigskip@hrule@bigskip
974@end iftex
975@ifnottex
976------------------------------------------------------------------------
977@end ifnottex
979@node Footnotes
980@chapter Footnotes
981Here 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.
983Subsequent blocks are indented to show that they belong to the footnote (as with list items).
984@verbatim
985 { <code> }
986@end verbatim
988If 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].}
990@quotation
991Notes can go in quotes.@footnote{In quote.}
992@end quotation
993@enumerate
994@item
995And in list items.@footnote{In list.}
996@end enumerate
998This paragraph should not be part of the note@comma{} as it is not indented.
1000@bye