6:Authors: John MacFarlane; Anonymous
13This is a set of tests for pandoc. Most of them are adapted from
14John Gruber's markdown test suite.
22Level four with *emphasis*
23~~~~~~~~~~~~~~~~~~~~~~~~~~
31Here's a regular paragraph.
33In Markdown 1.0.0 and earlier. Version
348. This line turns into a list item.
35Because a hard-wrapped line in the
36middle of a paragraph looked like a
39Here's one with a bullet.
55 This is a block quote.
58Here's another, differently indented:
60 This is a block quote.
61 It's indented with a tab.
63 Code in a block quote::
69 List in a block quote:
87 ---- (should be four hyphens)
95 this code block is indented by one tab
99 this block is indented by two tabs
101 These should not be escaped: \$ \\ \> \[ \{
105.. code-block:: python
110If we use the highlight directive, we can specify a default language
113.. highlight:: haskell
117 -- this code is in haskell
118 data Tree = Leaf | Node Tree Tree
122 -- this code is in haskell too
123 data Nat = Zero | Succ Nat
125.. highlight:: javascript
129 -- this code is in javascript
130 let f = (x, y) => x + y
217 Item 1. graf two. The quick brown fox jumped over the lazy dog's
252 iv. sublist with roman numerals, starting with 4
264 (6) Decimal start with 6
266 c) Lower alpha with paren
275Autonumbering with explicit start:
287 Definition 2, paragraph 1.
289 Definition 2, paragraph 2.
297 :address: 61 Main St.
298 :city: *Nowhere*, MA,
311Simple block on one line:
334 \begin{tabular}{|l|l|}\hline
335 Animal & Number \\ \hline
343This is *emphasized*. This is **strong**.
345This is code: ``>``, ``$``, ``\``, ``\$``, ``<html>``.
347This is\ :sub:`subscripted` and this is :sup:`superscripted`\ .
360AT&T has an ampersand in their name.
403Explicit: a `URL </url/>`_.
405Explicit with no label: `<foo>`_.
407Two anonymous links: `the first`__ and `the second`__
412Reference links: `link1`_ and `link2`_ and link1_ again.
417Another `style of reference link <link1_>`_.
419Here's a `link with an ampersand in the URL`_.
421Here's a link with an amersand in the link text: `AT&T </url/>`_.
423.. _link with an ampersand in the URL: http://example.com/?foo=1&bar=2
425Autolinks: http://example.com/?foo=1&bar=2 and nobody@nowhere.net.
434From "Voyage dans la Lune" by Georges Melies (1902):
440 :alt: Voyage dans la Lune
442Here is a movie |movie| icon.
444.. |movie| image:: movie.jpg
446And an |image with a link|.
448.. |image with a link| image:: movie.jpg
460 Comment block, should not appear in output
461 as defined by reStructuredText
466 Another comment block.
468 This one spans several
472 indentation is restored to the
480| But can a bee be said to be
481| or not to be an entire bee,
482| when half the bee is not a bee,
483| due to some ancient injury?
493================== =========== ==========
495================== =========== ==========
498================== =========== ==========
502================== =========== ==========
505================== =========== ==========
511+------------------+-----------+------------+
512| col 1 | col 2 | col 3 |
513+==================+===========+============+
515| r1 bis | b 2 | c 2 |
516+------------------+-----------+------------+
518+------------------+-----------+------------+
522+------------------+-----------+------------+
524| r1 bis | b 2 | c 2 |
525+------------------+-----------+------------+
527+------------------+-----------+------------+
529Spaces at ends of lines
531+------------------+-----------+------------+
533| r1 bis | b 2 | c 2 |
534+------------------+-----------+------------+
536+------------------+-----------+------------+
538Multiple blocks in a cell
540+------------------+-----------+------------+
543| r1 bis | - b 2 | c 2 |
544+------------------+-----------+------------+
557.. [1] Note with one line.
576Some inline math :math:`E=mc^2`\ . Now some
605Try changing the default role to a few different things.
607.. default-role:: math
609Doesn't Break Title Parsing
610---------------------------
612Inline math: `E=mc^2` or :math:`E=mc^2` or `E=mc^2`:math:.
613Other roles: :sup:`super`, `sub`:sub:.
622Some `of` these :sup:`words` are in `superscript`:sup:.
624Reset default-role to the default default.
628And now `some-invalid-string-3231231` is nonsense.
633And now with :html:`<b>inline</b> <span id="test">HTML</span>`.
635.. role:: haskell(code)
638And some inline haskell :haskell:`fmap id [1,2..10]`.
640.. role:: indirect(code)
642.. role:: py(indirect)
645Indirect python role :py:`[x*x for x in [1,2,3,4,5]]`.
647.. role:: different-indirect(code)
650.. role:: c(different-indirect)
652Different indirect C :c:`int x = 15;`.
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