5:Author: John MacFarlane
13.. role:: raw-latex(raw)
17This is a set of tests for pandoc. Most of them are adapted from John Gruber’s
25Level 2 with an `embedded link </url>`__
26----------------------------------------
28Level 3 with *emphasis*
29~~~~~~~~~~~~~~~~~~~~~~~
40Level 2 with *emphasis*
41-----------------------
58Here’s a regular paragraph.
60In Markdown 1.0.0 and earlier. Version 8. This line turns into a list item.
61Because a hard-wrapped line in the middle of a paragraph looked like a list
64Here’s one with a bullet. \* criminey.
66| There should be a hard line break
76 This is a block quote. It is pretty short.
80 Code in a block quote:
101This should not be a block quote: 2 > 1.
103And a following paragraph.
114 ---- (should be four hyphens)
120 this code block is indented by one tab
126 this code block is indented by two tabs
128 These should not be escaped: \$ \\ \> \[ \{
215 Item 1. graf two. The quick brown fox jumped over the lazy dog’s back.
241Same thing but with paragraphs:
256- this is a list item indented with tabs
258- this is a list item indented with spaces
260 - this is an example list item indented with tabs
262 - this is an example list item indented with spaces
272 iv. sublist with roman numerals, starting with 4
284 (6) Decimal start with 6
286 c) Lower alpha with paren
295Should not be a list item:
335Multiple blocks with italics:
340 contains seeds, crisp, pleasant to taste
347 { orange code block }
353Multiple definitions, tight:
362Multiple definitions, loose:
374Blank line after term, indented marker, alternate markers:
390Simple block on one line:
402And nested without indentation:
440Interpreted markdown in a table:
464And this is **strong**
480 <script type="text/javascript">document.write('This *should not* be interpreted as markdown');</script>
482Here’s a simple block:
494This should be a code block, though:
536This should just be an HTML comment:
554 This is another comment.
563Just plain comment, with trailing spaces on the line:
603 <hr class="foo" id="bar" />
607 <hr class="foo" id="bar" />
611 <hr class="foo" id="bar">
618This is *emphasized*, and so *is this*.
620This is **strong**, and so **is this**.
622An *`emphasized link </url>`__*.
624***This is strong and em.***
626So is ***this*** word.
628***This is strong and em.***
630So is ***this*** word.
632This is code: ``>``, ``$``, ``\``, ``\$``, ``<html>``.
634[STRIKEOUT:This is *strikeout*.]
636Superscripts: a\ :sup:`bc`\ d a\ :sup:`*hello*` a\ :sup:`hello there`.
638Subscripts: H\ :sub:`2`\ O, H\ :sub:`23`\ O, H\ :sub:`many of them`\ O.
640These should not be superscripts or subscripts, because of the unescaped
641spaces: a^b c^d, a~b c~d.
645Smart quotes, ellipses, dashes
646==============================
648“Hello,” said the spider. “‘Shelob’ is my name.”
650‘A’, ‘B’, and ‘C’ are letters.
652‘Oak,’ ‘elm,’ and ‘beech’ are names of trees. So is ‘pine.’
654‘He said, “I want to go.”’ Were you alive in the 70’s?
656Here is some quoted ‘``code``’ and a “`quoted
657link <http://example.com/?foo=1&bar=2>`__”.
659Some dashes: one—two — three—four — five.
661Dashes between numbers: 5–7, 255–66, 1987–1999.
670- :raw-latex:`\cite[22-23]{smith.1899}`
673- :math:`\alpha \wedge \omega`
676- Here’s some display math:
678 .. math:: \frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}
680- Here’s one that has a line break in it: :math:`\alpha + \omega \times x^2`.
682These shouldn’t be math:
684- To get the famous equation, write ``$e = mc^2$``.
685- $22,000 is a *lot* of money. So is $34,000. (It worked if “lot” is
687- Shoes ($20) and socks ($5).
688- Escaped ``$``: $73 *this should be emphasized* 23$.
694 \begin{tabular}{|l|l|}\hline
695 Animal & Number \\ \hline
713AT&T has an ampersand in their name.
715AT&T is another way to write it.
763Just a `URL </url/>`__.
765`URL and title </url/>`__.
767`URL and title </url/>`__.
769`URL and title </url/>`__.
771`URL and title </url/>`__
773`URL and title </url/>`__
775`with_underscore </url/with_underscore>`__
777`Email link <mailto:nobody@nowhere.net>`__
786With `embedded [brackets] </url/>`__.
788`b </url/>`__ by itself should be a link.
790Indented `once </url>`__.
792Indented `twice </url>`__.
794Indented `thrice </url>`__.
796This should [not][] be a link.
809Here’s a `link with an ampersand in the
810URL <http://example.com/?foo=1&bar=2>`__.
812Here’s a link with an amersand in the link text: `AT&T <http://att.com/>`__.
814Here’s an `inline link </script?foo=1&bar=2>`__.
816Here’s an `inline link in pointy braces </script?foo=1&bar=2>`__.
821With an ampersand: http://example.com/?foo=1&bar=2
827An e-mail address: nobody@nowhere.net
829 Blockquoted: http://example.com/
831Auto-links should not occur here: ``<http://example.com/>``
835 or here: <http://example.com/>
842From “Voyage dans la Lune” by Georges Melies (1902):
844.. figure:: lalune.jpg
845 :alt: Voyage dans la Lune
849Here is a movie |movie| icon.
856Here is a footnote reference, [1]_ and another. [2]_ This should *not* be a
857footnote reference, because it contains a space.[^my note] Here is an inline
860 Notes can go in quotes. [4]_
8621. And in list items. [5]_
864This paragraph should not be part of the note, as it is not indented.
867 Here is the footnote. It can go anywhere after the footnote reference. It
868 need not be placed at the end of the document.
871 Here’s the long note. This one contains multiple blocks.
873 Subsequent blocks are indented to show that they belong to the footnote (as
880 If you want, you can indent every line, but you can also be lazy and just
881 indent the first line of each block.
884 This is *easier* to type. Inline notes may contain
885 `links <http://google.com>`__ and ``]`` verbatim characters, as well as
894.. |movie| image:: movie.jpg
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