4@macro textstrikeout{text}
8@macro textsubscript{text}
17@macro textsuperscript{text}
19@textsuperscript{\text\}
30@title Pandoc Test Suite
31@author John MacFarlane
39This is a set of tests for pandoc. Most of them are adapted from John Gruber's markdown test suite.
45------------------------------------------------------------------------
57* Smart quotes ellipses dashes::
68* Level 2 with an embedded link::
71@node Level 2 with an embedded link
72@section Level 2 with an @uref{/url,embedded link}
74* Level 3 with emphasis::
77@node Level 3 with emphasis
78@subsection Level 3 with @emph{emphasis}
90* Level 2 with emphasis::
94@node Level 2 with emphasis
95@section Level 2 with @emph{emphasis}
110@bigskip@hrule@bigskip
113------------------------------------------------------------------------
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.
127@bigskip@hrule@bigskip
130------------------------------------------------------------------------
138This is a block quote. It is pretty short.
142Code in a block quote:
169This should not be a block quote: 2 > 1.
171And a following paragraph.
174@bigskip@hrule@bigskip
177------------------------------------------------------------------------
184---- (should be four hyphens)
190this code block is indented by one tab
195 this code block is indented by two tabs
197These should not be escaped: \$ \\ \> \[ \{
201@bigskip@hrule@bigskip
204------------------------------------------------------------------------
214* Fancy list markers::
351Item 1@comma{} graf one.
353Item 1. graf two. The quick brown fox jumped over the lazy dog's back.
401Same thing but with paragraphs:
426@section Tabs and spaces
429this is a list item indented with tabs
432this is a list item indented with spaces
436this is an example list item indented with tabs
439this is an example list item indented with spaces
446@node Fancy list markers
447@section Fancy list markers
458sublist with roman numerals@comma{} starting with 4
485Lower alpha with paren
508Should not be a list item:
515@bigskip@hrule@bigskip
518------------------------------------------------------------------------
521@node Definition Lists
522@chapter Definition Lists
568Multiple blocks with italics:
575contains seeds@comma{} crisp@comma{} pleasant to taste
590Multiple definitions@comma{} tight:
603Multiple definitions@comma{} loose:
620Blank line after term@comma{} indented marker@comma{} alternate markers:
645Simple block on one line:
648And nested without indentation:
652Interpreted markdown in a table:
654This is @emph{emphasized}
655And this is @strong{strong}
656Here's a simple block:
659This should be a code block@comma{} though:
674This should just be an HTML comment:
683Just plain comment@comma{} with trailing spaces on the line:
693@bigskip@hrule@bigskip
696------------------------------------------------------------------------
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.
726@bigskip@hrule@bigskip
729------------------------------------------------------------------------
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{}.
751@bigskip@hrule@bigskip
754------------------------------------------------------------------------
762\cite[22-23]{smith.1899}
769@math{\alpha \wedge \omega}
775Here's some display math: @math{\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}}
777Here's one that has a line break in it: @math{\alpha + \omega \times x^2}.
780These shouldn't be math:
784To get the famous equation@comma{} write @code{$e = mc^2$}.
786$22@comma{}000 is a @emph{lot} of money. So is $34@comma{}000. (It worked if ``lot'' is emphasized.)
788Shoes ($20) and socks ($5).
790Escaped @code{$}: $73 @emph{this should be emphasized} 23$.
796\begin{tabular}{|l|l|}\hline
797Animal & Number \\ \hline
804@bigskip@hrule@bigskip
807------------------------------------------------------------------------
810@node Special Characters
811@chapter Special Characters
827AT&T has an ampersand in their name.
829AT&T is another way to write it.
870@bigskip@hrule@bigskip
873------------------------------------------------------------------------
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}
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.
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}.
947With an ampersand: @url{http://example.com/?foo=1&bar=2}
953@url{http://example.com/}
958An e-mail address: @uref{mailto:nobody@@nowhere.net,@code{nobody@@nowhere.net}}
961Blockquoted: @url{http://example.com/}
964Auto-links should not occur here: @code{<http://example.com/>}
966or here: <http://example.com/>
970@bigskip@hrule@bigskip
973------------------------------------------------------------------------
978From ``Voyage dans la Lune'' by Georges Melies (1902):
981@image{lalune,,,lalune,jpg}
985Here is a movie @image{movie,,,movie,jpg} icon.
988@bigskip@hrule@bigskip
991------------------------------------------------------------------------
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).
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].}
1006Notes can go in quotes.@footnote{In quote.}
1011And in list items.@footnote{In list.}
1014This paragraph should not be part of the note@comma{} 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