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.\" pdf outline fold level
53.nr PDFOUTLINE.FOLDLEVEL 3
54.\" start out in outline view
55.pdfview /PageMode /UseOutlines
56.\" ***************************************************************
58.pdfinfo /Title "Pandoc Test Suite"
59.pdfinfo /Author "John MacFarlane; Anonymous"
74.\" 1 column (use .2C for two column)
77This is a set of tests for pandoc.
78Most of them are adapted from John Gruber\[cq]s markdown test suite.
86.pdfhref W -D "/url" -A "\c" \
89.pdfhref O 2 "Level 2 with an embedded link"
90.pdfhref M "level-2-with-an-embedded-link"
92Level 3 with \f[BI]emphasis\f[B]
93.pdfhref O 3 "Level 3 with emphasis"
94.pdfhref M "level-3-with-emphasis"
101.pdfhref O 5 "Level 5"
105.pdfhref O 1 "Level 1"
108Level 2 with \f[BI]emphasis\f[B]
109.pdfhref O 2 "Level 2 with emphasis"
110.pdfhref M "level-2-with-emphasis"
113.pdfhref O 3 "Level 3"
119.pdfhref O 2 "Level 2"
126.pdfhref O 1 "Paragraphs"
127.pdfhref M "paragraphs"
129Here\[cq]s a regular paragraph.
131In Markdown 1.0.0 and earlier.
133This line turns into a list item.
134Because a hard-wrapped line in the middle of a paragraph looked like a list
137Here\[cq]s one with a bullet.
140There should be a hard line break
146.pdfhref O 1 "Block Quotes"
147.pdfhref M "block-quotes"
152This is a block quote.
157Code in a block quote:
162 print \[dq]working\[dq];
184This should not be a block quote: 2 > 1.
186And a following paragraph.
190.pdfhref O 1 "Code Blocks"
191.pdfhref M "code-blocks"
197---- (should be four hyphens)
200 print \[dq]working\[dq];
203this code block is indented by one tab
211 this code block is indented by two tabs
213These should not be escaped: \[rs]$ \[rs]\[rs] \[rs]> \[rs][ \[rs]{
223.pdfhref O 2 "Unordered"
224.pdfhref M "unordered"
275.pdfhref O 2 "Ordered"
317The quick brown fox jumped over the lazy dog\[cq]s back.
354Same thing but with paragraphs:
371.pdfhref O 2 "Tabs and spaces"
372.pdfhref M "tabs-and-spaces"
374this is a list item indented with tabs
376this is a list item indented with spaces
379this is an example list item indented with tabs
381this is an example list item indented with spaces
385.pdfhref O 2 "Fancy list markers"
386.pdfhref M "fancy-list-markers"
395sublist with roman numerals, starting with 4
417Lower alpha with paren
432Should not be a list item:
441.pdfhref O 1 "Definition Lists"
442.pdfhref M "definition-lists"
486Multiple blocks with italics:
491contains seeds, crisp, pleasant to taste
493.IP "\f[I]orange\f[R]"
508Multiple definitions, tight:
524Multiple definitions, loose:
540Blank line after term, indented marker, alternate markers:
558.pdfhref O 1 "HTML Blocks"
559.pdfhref M "html-blocks"
561Simple block on one line:
564And nested without indentation:
569Interpreted markdown in a table:
570This is \f[I]emphasized\f[R]
571And this is \f[B]strong\f[R]
573Here\[cq]s a simple block:
577This should be a code block, though:
598This should just be an HTML comment:
610Just plain comment, with trailing spaces on the line:
624.pdfhref O 1 "Inline Markup"
625.pdfhref M "inline-markup"
627This is \f[I]emphasized\f[R], and so \f[I]is this\f[R].
629This is \f[B]strong\f[R], and so \f[B]is this\f[R].
632.pdfhref W -D "/url" -A "\c" \
636\f[B]\f[BI]This is strong and em.\f[B]\f[R]
638So is \f[B]\f[BI]this\f[B]\f[R] word.
640\f[B]\f[BI]This is strong and em.\f[B]\f[R]
642So is \f[B]\f[BI]this\f[B]\f[R] word.
644This is code: \f[C]>\f[R], \f[C]$\f[R], \f[C]\[rs]\f[R], \f[C]\[rs]$\f[R],
647\m[strikecolor]This is \f[I]strikeout\f[R].\m[]
649Superscripts: a\*{bc\*}d a\*{\f[I]hello\f[R]\*} a\*{hello\ there\*}.
651Subscripts: H\*<2\*>O, H\*<23\*>O, H\*<many\ of\ them\*>O.
653These should not be superscripts or subscripts, because of the unescaped
654spaces: a\[ha]b c\[ha]d, a\[ti]b c\[ti]d.
657Smart quotes, ellipses, dashes
658.pdfhref O 1 "Smart quotes, ellipses, dashes"
659.pdfhref M "smart-quotes-ellipses-dashes"
661\[lq]Hello,\[rq] said the spider.
662\[lq]`Shelob' is my name.\[rq]
664`A', `B', and `C' are letters.
666`Oak,' `elm,' and `beech' are names of trees.
669`He said, \[lq]I want to go.\[rq]' Were you alive in the 70\[cq]s?
671Here is some quoted `\f[C]code\f[R]' and a \[lq]\c
672.pdfhref W -D "http://example.com/?foo=1&bar=2" -A "\c" \
676Some dashes: one\[em]two \[em] three\[em]four \[em] five.
678Dashes between numbers: 5\[en]7, 255\[en]66, 1987\[en]1999.
680Ellipses\&...and\&...and\&....
692@alpha \[u2227] omega@
698Here\[cq]s some display math:
700d over {d x} f ( x ) = lim sub {h -> 0} {f ( x + h ) \[u2212] f ( x )} over h
703Here\[cq]s one that has a line break in it: @alpha + omega times x sup 2@.
705These shouldn\[cq]t be math:
707To get the famous equation, write \f[C]$e = mc\[ha]2$\f[R].
709$22,000 is a \f[I]lot\f[R] of money.
711(It worked if \[lq]lot\[rq] is emphasized.)
713Shoes ($20) and socks ($5).
715Escaped \f[C]$\f[R]: $73 \f[I]this should be emphasized\f[R] 23$.
717Here\[cq]s a LaTeX table:
721.pdfhref O 1 "Special Characters"
722.pdfhref M "special-characters"
736AT&T has an ampersand in their name.
738AT&T is another way to write it.
784.pdfhref O 2 "Explicit"
788.pdfhref W -D "/url/" -A "\c" \
793.pdfhref W -D "/url/" -A "\c" \
798.pdfhref W -D "/url/" -A "\c" \
803.pdfhref W -D "/url/" -A "\c" \
808.pdfhref W -D "/url/" -A "\c" \
813.pdfhref W -D "/url/" -A "\c" \
818.pdfhref W -D "/url/with_underscore" -A "\c" \
823.pdfhref W -D "mailto:nobody%40nowhere.net" -A "\c" \
828.pdfhref W -D "" -A "\c" \
833.pdfhref O 2 "Reference"
834.pdfhref M "reference"
837.pdfhref W -D "/url/" -A "\c" \
842.pdfhref W -D "/url/" -A "\c" \
843 -- "embedded [brackets]"
847.pdfhref W -D "/url/" -A "\c" \
849\& by itself should be a link.
852.pdfhref W -D "/url" -A "\c" \
857.pdfhref W -D "/url" -A "\c" \
862.pdfhref W -D "/url" -A "\c" \
866This should [not][] be a link.
875.pdfhref W -D "/url/" -A "\c" \
880.pdfhref W -D "/url/" -A "\c" \
885.pdfhref O 2 "With ampersands"
886.pdfhref M "with-ampersands"
889.pdfhref W -D "http://example.com/?foo=1&bar=2" -A "\c" \
890 -- "link with an ampersand in the URL"
893Here\[cq]s a link with an amersand in the link text: \c
894.pdfhref W -D "http://att.com/" -A "\c" \
899.pdfhref W -D "/script?foo=1&bar=2" -A "\c" \
904.pdfhref W -D "/script?foo=1&bar=2" -A "\c" \
905 -- "inline link in pointy braces"
909.pdfhref O 2 "Autolinks"
910.pdfhref M "autolinks"
913.pdfhref W -D "http://example.com/?foo=1&bar=2" -A "\c" \
914 -- "http://example.com/?foo=1&bar=2"
920.pdfhref W -D "http://example.com/" -A "\c" \
921 -- "http://example.com/"
927.pdfhref W -D "mailto:nobody%40nowhere.net" -A "\c" \
928 -- "nobody\[at]nowhere.net"
933.pdfhref W -D "http://example.com/" -A "\c" \
934 -- "http://example.com/"
938Auto-links should not occur here: \f[C]<http://example.com/>\f[R]
942or here: <http://example.com/>
951From \[lq]Voyage dans la Lune\[rq] by Georges Melies (1902):
955Here is a movie [IMAGE: movie] icon.
959.pdfhref O 1 "Footnotes"
960.pdfhref M "footnotes"
962Here is a footnote reference,\**
965It can go anywhere after the footnote reference.
966It need not be placed at the end of the document.
970Here\[cq]s the long note.
971This one contains multiple blocks.
973Subsequent blocks are indented to show that they belong to the footnote (as
982If you want, you can indent every line, but you can also be lazy and just
983indent the first line of each block.
985This should \f[I]not\f[R] be a footnote reference, because it contains a
986space.[\[ha]my note] Here is an inline note.\**
988This is \f[I]easier\f[R] to type.
989Inline notes may contain \c
990.pdfhref W -D "http://google.com" -A "\c" \
992\& and \f[C]]\f[R] verbatim characters, as well as [bracketed text].
996Notes can go in quotes.\**
1002And in list items.\**
1007This 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