1.\" **** Custom macro definitions *********************************
3.\" (https://lists.gnu.org/archive/html/groff/2012-07/msg00046.html)
4.ds { \v'-0.3m'\\s[\\n[.s]*9u/12u]
6.ds < \v'0.3m'\s[\\n[.s]*9u/12u]
14.\" **** Settings *************************************************
23.\" header/footer width
29.\" font family: A, BM, H, HN, N, P, T, ZCM
33.\" interparagraph space
37.\" footnote point size
38.nr FPS (\n[PS] - 2000)
39.\" color used for strikeout
40.defcolor strikecolor rgb 0.7 0.7 0.7
41.\" color for links (rgb)
42.ds PDFHREF.COLOUR 0.35 0.00 0.60
43.\" border for links (default none)
44.ds PDFHREF.BORDER 0 0 0
45.\" point size difference between heading levels
47.\" heading level above which point size no longer changes
49.\" comment these out if you want a dot after section numbers:
51.als SN-STYLE SN-NO-DOT
52.\" page numbers in footer, centered
55.\" pdf outline fold level
56.nr PDFOUTLINE.FOLDLEVEL 3
57.\" start out in outline view
58.pdfview /PageMode /UseOutlines
59.\" ***************************************************************
61.pdfinfo /Title "Pandoc Test Suite"
62.pdfinfo /Author "John MacFarlane; Anonymous"
77.\" 1 column (use .2C for two column)
80This is a set of tests for pandoc.
81Most of them are adapted from John Gruber\[cq]s markdown test suite.
89.pdfhref W -D "/url" -A "\c" \
92.pdfhref O 2 "Level 2 with an embedded link"
93.pdfhref M "level-2-with-an-embedded-link"
95Level 3 with \f[BI]emphasis\f[B]
96.pdfhref O 3 "Level 3 with emphasis"
97.pdfhref M "level-3-with-emphasis"
100.pdfhref O 4 "Level 4"
104.pdfhref O 5 "Level 5"
108.pdfhref O 1 "Level 1"
111Level 2 with \f[BI]emphasis\f[B]
112.pdfhref O 2 "Level 2 with emphasis"
113.pdfhref M "level-2-with-emphasis"
116.pdfhref O 3 "Level 3"
122.pdfhref O 2 "Level 2"
129.pdfhref O 1 "Paragraphs"
130.pdfhref M "paragraphs"
132Here\[cq]s a regular paragraph.
134In Markdown 1.0.0 and earlier.
136This line turns into a list item.
137Because a hard-wrapped line in the middle of a paragraph looked like a list
140Here\[cq]s one with a bullet.
143There should be a hard line break
149.pdfhref O 1 "Block Quotes"
150.pdfhref M "block-quotes"
155This is a block quote.
160Code in a block quote:
165 print \[dq]working\[dq];
187This should not be a block quote: 2 > 1.
189And a following paragraph.
193.pdfhref O 1 "Code Blocks"
194.pdfhref M "code-blocks"
200---- (should be four hyphens)
203 print \[dq]working\[dq];
206this code block is indented by one tab
214 this code block is indented by two tabs
216These should not be escaped: \[rs]$ \[rs]\[rs] \[rs]> \[rs][ \[rs]{
226.pdfhref O 2 "Unordered"
227.pdfhref M "unordered"
278.pdfhref O 2 "Ordered"
320The quick brown fox jumped over the lazy dog\[cq]s back.
357Same thing but with paragraphs:
374.pdfhref O 2 "Tabs and spaces"
375.pdfhref M "tabs-and-spaces"
377this is a list item indented with tabs
379this is a list item indented with spaces
382this is an example list item indented with tabs
384this is an example list item indented with spaces
388.pdfhref O 2 "Fancy list markers"
389.pdfhref M "fancy-list-markers"
398sublist with roman numerals, starting with 4
420Lower alpha with paren
435Should not be a list item:
444.pdfhref O 1 "Definition Lists"
445.pdfhref M "definition-lists"
452.IP "\f[B]orange\f[R]"
456.IP "\f[B]banana\f[R]"
466.IP "\f[B]orange\f[R]"
470.IP "\f[B]banana\f[R]"
480.IP "\f[B]orange\f[R]"
484.IP "\f[B]banana\f[R]"
489Multiple blocks with italics:
490.IP "\f[B]\f[BI]apple\f[B]\f[R]"
494contains seeds, crisp, pleasant to taste
496.IP "\f[B]\f[BI]orange\f[B]\f[R]"
511Multiple definitions, tight:
519.IP "\f[B]orange\f[R]"
527Multiple definitions, loose:
535.IP "\f[B]orange\f[R]"
543Blank line after term, indented marker, alternate markers:
551.IP "\f[B]orange\f[R]"
561.pdfhref O 1 "HTML Blocks"
562.pdfhref M "html-blocks"
564Simple block on one line:
567And nested without indentation:
572Interpreted markdown in a table:
573This is \f[I]emphasized\f[R]
574And this is \f[B]strong\f[R]
576Here\[cq]s a simple block:
580This should be a code block, though:
601This should just be an HTML comment:
613Just plain comment, with trailing spaces on the line:
627.pdfhref O 1 "Inline Markup"
628.pdfhref M "inline-markup"
630This is \f[I]emphasized\f[R], and so \f[I]is this\f[R].
632This is \f[B]strong\f[R], and so \f[B]is this\f[R].
635.pdfhref W -D "/url" -A "\c" \
639\f[B]\f[BI]This is strong and em.\f[B]\f[R]
641So is \f[B]\f[BI]this\f[B]\f[R] word.
643\f[B]\f[BI]This is strong and em.\f[B]\f[R]
645So is \f[B]\f[BI]this\f[B]\f[R] word.
647This is code: \f[C]>\f[R], \f[C]$\f[R], \f[C]\[rs]\f[R], \f[C]\[rs]$\f[R],
650\m[strikecolor]This is \f[I]strikeout\f[R].\m[]
652Superscripts: a\*{bc\*}d a\*{\f[I]hello\f[R]\*} a\*{hello\ there\*}.
654Subscripts: H\*<2\*>O, H\*<23\*>O, H\*<many\ of\ them\*>O.
656These should not be superscripts or subscripts, because of the unescaped
657spaces: a\[ha]b c\[ha]d, a\[ti]b c\[ti]d.
660Smart quotes, ellipses, dashes
661.pdfhref O 1 "Smart quotes, ellipses, dashes"
662.pdfhref M "smart-quotes-ellipses-dashes"
664\[lq]Hello,\[rq] said the spider.
665\[lq]`Shelob' is my name.\[rq]
667`A', `B', and `C' are letters.
669`Oak,' `elm,' and `beech' are names of trees.
672`He said, \[lq]I want to go.\[rq]' Were you alive in the 70\[cq]s?
674Here is some quoted `\f[C]code\f[R]' and a \[lq]\c
675.pdfhref W -D "http://example.com/?foo=1&bar=2" -A "\c" \
679Some dashes: one\[em]two \[em] three\[em]four \[em] five.
681Dashes between numbers: 5\[en]7, 255\[en]66, 1987\[en]1999.
683Ellipses\&...and\&...and\&....
695@alpha \[u2227] omega@
701Here\[cq]s some display math:
703d over {d x} f ( x ) = lim sub {h -> 0} {f ( x + h ) \[u2212] f ( x )} over h
706Here\[cq]s one that has a line break in it: @alpha + omega times x sup 2@.
708These shouldn\[cq]t be math:
710To get the famous equation, write \f[C]$e = mc\[ha]2$\f[R].
712$22,000 is a \f[I]lot\f[R] of money.
714(It worked if \[lq]lot\[rq] is emphasized.)
716Shoes ($20) and socks ($5).
718Escaped \f[C]$\f[R]: $73 \f[I]this should be emphasized\f[R] 23$.
720Here\[cq]s a LaTeX table:
724.pdfhref O 1 "Special Characters"
725.pdfhref M "special-characters"
739AT&T has an ampersand in their name.
741AT&T is another way to write it.
787.pdfhref O 2 "Explicit"
791.pdfhref W -D "/url/" -A "\c" \
796.pdfhref W -D "/url/" -A "\c" \
801.pdfhref W -D "/url/" -A "\c" \
806.pdfhref W -D "/url/" -A "\c" \
811.pdfhref W -D "/url/" -A "\c" \
816.pdfhref W -D "/url/" -A "\c" \
821.pdfhref W -D "/url/with_underscore" -A "\c" \
826.pdfhref W -D "mailto:nobody%40nowhere.net" -A "\c" \
831.pdfhref W -D "" -A "\c" \
836.pdfhref O 2 "Reference"
837.pdfhref M "reference"
840.pdfhref W -D "/url/" -A "\c" \
845.pdfhref W -D "/url/" -A "\c" \
846 -- "embedded [brackets]"
850.pdfhref W -D "/url/" -A "\c" \
852\& by itself should be a link.
855.pdfhref W -D "/url" -A "\c" \
860.pdfhref W -D "/url" -A "\c" \
865.pdfhref W -D "/url" -A "\c" \
869This should [not][] be a link.
878.pdfhref W -D "/url/" -A "\c" \
883.pdfhref W -D "/url/" -A "\c" \
888.pdfhref O 2 "With ampersands"
889.pdfhref M "with-ampersands"
892.pdfhref W -D "http://example.com/?foo=1&bar=2" -A "\c" \
893 -- "link with an ampersand in the URL"
896Here\[cq]s a link with an amersand in the link text: \c
897.pdfhref W -D "http://att.com/" -A "\c" \
902.pdfhref W -D "/script?foo=1&bar=2" -A "\c" \
907.pdfhref W -D "/script?foo=1&bar=2" -A "\c" \
908 -- "inline link in pointy braces"
912.pdfhref O 2 "Autolinks"
913.pdfhref M "autolinks"
916.pdfhref W -D "http://example.com/?foo=1&bar=2" -A "\c" \
917 -- "http://example.com/?foo=1&bar=2"
923.pdfhref W -D "http://example.com/" -A "\c" \
924 -- "http://example.com/"
930.pdfhref W -D "mailto:nobody%40nowhere.net" -A "\c" \
931 -- "nobody\[at]nowhere.net"
936.pdfhref W -D "http://example.com/" -A "\c" \
937 -- "http://example.com/"
941Auto-links should not occur here: \f[C]<http://example.com/>\f[R]
945or here: <http://example.com/>
954From \[lq]Voyage dans la Lune\[rq] by Georges Melies (1902):
958Here is a movie [IMAGE: movie] icon.
962.pdfhref O 1 "Footnotes"
963.pdfhref M "footnotes"
965Here is a footnote reference,\**
968It can go anywhere after the footnote reference.
969It need not be placed at the end of the document.
973Here\[cq]s the long note.
974This one contains multiple blocks.
976Subsequent blocks are indented to show that they belong to the footnote (as
985If you want, you can indent every line, but you can also be lazy and just
986indent the first line of each block.
988This should \f[I]not\f[R] be a footnote reference, because it contains a
989space.[\[ha]my note] Here is an inline note.\**
991This is \f[I]easier\f[R] to type.
992Inline notes may contain \c
993.pdfhref W -D "http://google.com" -A "\c" \
995\& and \f[C]]\f[R] verbatim characters, as well as [bracketed text].
999Notes can go in quotes.\**
1005And in list items.\**
1010This 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