2011-11-16 23:52:10 +01:00
|
|
|
|
Pandoc Test Suite
|
|
|
|
|
=================
|
2011-11-19 04:46:12 +01:00
|
|
|
|
:author: John MacFarlane
|
|
|
|
|
:author: Anonymous
|
|
|
|
|
:date: July 17, 2006
|
2011-11-16 23:52:10 +01:00
|
|
|
|
|
2011-11-19 04:50:45 +01:00
|
|
|
|
This is a set of tests for pandoc. Most of them are adapted from John Gruber’s
|
|
|
|
|
markdown test suite.
|
2011-11-16 23:52:10 +01:00
|
|
|
|
|
|
|
|
|
'''''
|
|
|
|
|
|
|
|
|
|
Headers
|
|
|
|
|
-------
|
|
|
|
|
|
|
|
|
|
Level 2 with an link:/url[embedded link]
|
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
|
|
2011-11-19 04:46:12 +01:00
|
|
|
|
Level 3 with _emphasis_
|
2011-11-16 23:52:10 +01:00
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
Level 4
|
|
|
|
|
+++++++
|
|
|
|
|
|
|
|
|
|
Level 5
|
|
|
|
|
|
|
|
|
|
Level 1
|
|
|
|
|
-------
|
|
|
|
|
|
|
|
|
|
Level 2 with _emphasis_
|
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
|
|
|
|
|
|
Level 3
|
|
|
|
|
^^^^^^^
|
|
|
|
|
|
|
|
|
|
with no blank line
|
|
|
|
|
|
|
|
|
|
Level 2
|
2011-11-19 04:46:12 +01:00
|
|
|
|
~~~~~~~
|
2011-11-16 23:52:10 +01:00
|
|
|
|
|
|
|
|
|
with no blank line
|
|
|
|
|
|
|
|
|
|
'''''
|
|
|
|
|
|
|
|
|
|
Paragraphs
|
|
|
|
|
----------
|
|
|
|
|
|
|
|
|
|
Here’s a regular paragraph.
|
|
|
|
|
|
2011-11-19 04:50:45 +01:00
|
|
|
|
In 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.
|
2011-11-16 23:52:10 +01:00
|
|
|
|
|
2011-11-19 06:09:23 +01:00
|
|
|
|
Here’s one with a bullet. * criminey.
|
2011-11-16 23:52:10 +01:00
|
|
|
|
|
|
|
|
|
There should be a hard line break +
|
|
|
|
|
here.
|
|
|
|
|
|
|
|
|
|
'''''
|
|
|
|
|
|
|
|
|
|
Block Quotes
|
|
|
|
|
------------
|
|
|
|
|
|
|
|
|
|
E-mail style:
|
|
|
|
|
|
|
|
|
|
__________________________________________
|
|
|
|
|
This is a block quote. It is pretty short.
|
|
|
|
|
__________________________________________
|
|
|
|
|
|
2011-11-19 04:46:12 +01:00
|
|
|
|
______________________
|
|
|
|
|
--
|
2011-11-16 23:52:10 +01:00
|
|
|
|
Code in a block quote:
|
|
|
|
|
|
2011-11-19 04:46:12 +01:00
|
|
|
|
--------------------
|
|
|
|
|
sub status {
|
|
|
|
|
print "working";
|
|
|
|
|
}
|
|
|
|
|
--------------------
|
2011-11-16 23:52:10 +01:00
|
|
|
|
|
|
|
|
|
A list:
|
|
|
|
|
|
2011-11-19 04:46:12 +01:00
|
|
|
|
1. item one
|
|
|
|
|
2. item two
|
2011-11-16 23:52:10 +01:00
|
|
|
|
|
|
|
|
|
Nested block quotes:
|
|
|
|
|
|
|
|
|
|
______
|
|
|
|
|
nested
|
|
|
|
|
______
|
2011-11-19 04:46:12 +01:00
|
|
|
|
|
2011-11-16 23:52:10 +01:00
|
|
|
|
______
|
2011-11-19 04:46:12 +01:00
|
|
|
|
nested
|
2011-11-16 23:52:10 +01:00
|
|
|
|
______
|
|
|
|
|
|
2011-11-19 04:46:12 +01:00
|
|
|
|
--
|
|
|
|
|
______________________
|
|
|
|
|
|
2011-11-19 06:09:23 +01:00
|
|
|
|
This should not be a block quote: 2 > 1.
|
2011-11-16 23:52:10 +01:00
|
|
|
|
|
|
|
|
|
And a following paragraph.
|
|
|
|
|
|
|
|
|
|
'''''
|
|
|
|
|
|
|
|
|
|
Code Blocks
|
|
|
|
|
-----------
|
|
|
|
|
|
|
|
|
|
Code:
|
|
|
|
|
|
2011-11-19 04:46:12 +01:00
|
|
|
|
--------------------------------------
|
2011-11-16 23:52:10 +01:00
|
|
|
|
---- (should be four hyphens)
|
|
|
|
|
|
|
|
|
|
sub status {
|
|
|
|
|
print "working";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this code block is indented by one tab
|
2011-11-19 04:46:12 +01:00
|
|
|
|
--------------------------------------
|
2011-11-16 23:52:10 +01:00
|
|
|
|
|
|
|
|
|
And:
|
|
|
|
|
|
2011-11-19 04:46:12 +01:00
|
|
|
|
--------------------------------------------
|
2011-11-16 23:52:10 +01:00
|
|
|
|
this code block is indented by two tabs
|
|
|
|
|
|
|
|
|
|
These should not be escaped: \$ \\ \> \[ \{
|
2011-11-19 04:46:12 +01:00
|
|
|
|
--------------------------------------------
|
2011-11-16 23:52:10 +01:00
|
|
|
|
|
|
|
|
|
'''''
|
|
|
|
|
|
|
|
|
|
Lists
|
|
|
|
|
-----
|
|
|
|
|
|
|
|
|
|
Unordered
|
|
|
|
|
~~~~~~~~~
|
|
|
|
|
|
|
|
|
|
Asterisks tight:
|
|
|
|
|
|
|
|
|
|
* asterisk 1
|
|
|
|
|
* asterisk 2
|
|
|
|
|
* asterisk 3
|
|
|
|
|
|
|
|
|
|
Asterisks loose:
|
|
|
|
|
|
|
|
|
|
* asterisk 1
|
|
|
|
|
* asterisk 2
|
|
|
|
|
* asterisk 3
|
|
|
|
|
|
|
|
|
|
Pluses tight:
|
|
|
|
|
|
|
|
|
|
* Plus 1
|
|
|
|
|
* Plus 2
|
|
|
|
|
* Plus 3
|
|
|
|
|
|
|
|
|
|
Pluses loose:
|
|
|
|
|
|
|
|
|
|
* Plus 1
|
|
|
|
|
* Plus 2
|
|
|
|
|
* Plus 3
|
|
|
|
|
|
|
|
|
|
Minuses tight:
|
|
|
|
|
|
|
|
|
|
* Minus 1
|
|
|
|
|
* Minus 2
|
|
|
|
|
* Minus 3
|
|
|
|
|
|
|
|
|
|
Minuses loose:
|
|
|
|
|
|
|
|
|
|
* Minus 1
|
|
|
|
|
* Minus 2
|
|
|
|
|
* Minus 3
|
|
|
|
|
|
|
|
|
|
Ordered
|
|
|
|
|
~~~~~~~
|
|
|
|
|
|
|
|
|
|
Tight:
|
|
|
|
|
|
2011-11-19 04:46:12 +01:00
|
|
|
|
1. First
|
|
|
|
|
2. Second
|
|
|
|
|
3. Third
|
2011-11-16 23:52:10 +01:00
|
|
|
|
|
|
|
|
|
and:
|
|
|
|
|
|
2011-11-19 04:46:12 +01:00
|
|
|
|
1. One
|
|
|
|
|
2. Two
|
|
|
|
|
3. Three
|
2011-11-16 23:52:10 +01:00
|
|
|
|
|
|
|
|
|
Loose using tabs:
|
|
|
|
|
|
2011-11-19 04:46:12 +01:00
|
|
|
|
1. First
|
|
|
|
|
2. Second
|
|
|
|
|
3. Third
|
2011-11-16 23:52:10 +01:00
|
|
|
|
|
|
|
|
|
and using spaces:
|
|
|
|
|
|
2011-11-19 04:46:12 +01:00
|
|
|
|
1. One
|
|
|
|
|
2. Two
|
|
|
|
|
3. Three
|
2011-11-16 23:52:10 +01:00
|
|
|
|
|
|
|
|
|
Multiple paragraphs:
|
|
|
|
|
|
2011-11-19 04:46:12 +01:00
|
|
|
|
1. Item 1, graf one.
|
2011-11-16 23:52:10 +01:00
|
|
|
|
+
|
|
|
|
|
Item 1. graf two. The quick brown fox jumped over the lazy dog’s back.
|
2011-11-19 04:46:12 +01:00
|
|
|
|
2. Item 2.
|
|
|
|
|
3. Item 3.
|
2011-11-16 23:52:10 +01:00
|
|
|
|
|
|
|
|
|
Nested
|
|
|
|
|
~~~~~~
|
|
|
|
|
|
|
|
|
|
* Tab
|
|
|
|
|
** Tab
|
|
|
|
|
*** Tab
|
|
|
|
|
|
|
|
|
|
Here’s another:
|
|
|
|
|
|
2011-11-19 04:46:12 +01:00
|
|
|
|
1. First
|
|
|
|
|
2. Second:
|
|
|
|
|
* Fee
|
|
|
|
|
* Fie
|
|
|
|
|
* Foe
|
|
|
|
|
3. Third
|
2011-11-16 23:52:10 +01:00
|
|
|
|
|
|
|
|
|
Same thing but with paragraphs:
|
|
|
|
|
|
2011-11-19 04:46:12 +01:00
|
|
|
|
1. First
|
|
|
|
|
2. Second:
|
|
|
|
|
* Fee
|
|
|
|
|
* Fie
|
|
|
|
|
* Foe
|
2011-11-16 23:52:10 +01:00
|
|
|
|
3. Third
|
|
|
|
|
|
|
|
|
|
Tabs and spaces
|
|
|
|
|
~~~~~~~~~~~~~~~
|
|
|
|
|
|
|
|
|
|
* this is a list item indented with tabs
|
|
|
|
|
* this is a list item indented with spaces
|
|
|
|
|
** this is an example list item indented with tabs
|
|
|
|
|
** this is an example list item indented with spaces
|
|
|
|
|
|
|
|
|
|
Fancy list markers
|
|
|
|
|
~~~~~~~~~~~~~~~~~~
|
|
|
|
|
|
2011-11-19 06:26:25 +01:00
|
|
|
|
1. begins with 2
|
|
|
|
|
2. and now 3
|
2011-11-16 23:52:10 +01:00
|
|
|
|
+
|
|
|
|
|
with a continuation
|
2011-11-19 06:26:25 +01:00
|
|
|
|
a. sublist with roman numerals, starting with 4
|
|
|
|
|
b. more items
|
2011-11-19 04:46:12 +01:00
|
|
|
|
A. a subsublist
|
|
|
|
|
B. a subsublist
|
2011-11-16 23:52:10 +01:00
|
|
|
|
|
|
|
|
|
Nesting:
|
|
|
|
|
|
2011-11-19 04:46:12 +01:00
|
|
|
|
A. Upper Alpha
|
2011-11-19 06:26:25 +01:00
|
|
|
|
A. Upper Roman.
|
|
|
|
|
1. Decimal start with 6
|
|
|
|
|
a. Lower alpha with paren
|
2011-11-16 23:52:10 +01:00
|
|
|
|
|
|
|
|
|
Autonumbering:
|
|
|
|
|
|
2011-11-19 04:46:12 +01:00
|
|
|
|
1. Autonumber.
|
|
|
|
|
2. More.
|
|
|
|
|
1. Nested.
|
2011-11-16 23:52:10 +01:00
|
|
|
|
|
|
|
|
|
Should not be a list item:
|
|
|
|
|
|
|
|
|
|
M.A. 2007
|
|
|
|
|
|
|
|
|
|
B. Williams
|
|
|
|
|
|
|
|
|
|
'''''
|
|
|
|
|
|
|
|
|
|
Definition Lists
|
|
|
|
|
----------------
|
|
|
|
|
|
|
|
|
|
Tight using spaces:
|
|
|
|
|
|
2011-11-19 04:46:12 +01:00
|
|
|
|
apple::
|
|
|
|
|
red fruit
|
|
|
|
|
orange::
|
|
|
|
|
orange fruit
|
|
|
|
|
banana::
|
|
|
|
|
yellow fruit
|
2011-11-16 23:52:10 +01:00
|
|
|
|
|
|
|
|
|
Tight using tabs:
|
|
|
|
|
|
2011-11-19 04:46:12 +01:00
|
|
|
|
apple::
|
|
|
|
|
red fruit
|
|
|
|
|
orange::
|
|
|
|
|
orange fruit
|
|
|
|
|
banana::
|
|
|
|
|
yellow fruit
|
2011-11-16 23:52:10 +01:00
|
|
|
|
|
|
|
|
|
Loose:
|
|
|
|
|
|
2011-11-19 04:46:12 +01:00
|
|
|
|
apple::
|
|
|
|
|
red fruit
|
|
|
|
|
orange::
|
|
|
|
|
orange fruit
|
|
|
|
|
banana::
|
|
|
|
|
yellow fruit
|
2011-11-16 23:52:10 +01:00
|
|
|
|
|
|
|
|
|
Multiple blocks with italics:
|
|
|
|
|
|
2011-11-19 04:46:12 +01:00
|
|
|
|
_apple_::
|
|
|
|
|
red fruit
|
|
|
|
|
+
|
|
|
|
|
contains seeds, crisp, pleasant to taste
|
|
|
|
|
_orange_::
|
|
|
|
|
orange fruit
|
|
|
|
|
+
|
|
|
|
|
---------------------
|
|
|
|
|
{ orange code block }
|
|
|
|
|
---------------------
|
|
|
|
|
+
|
|
|
|
|
__________________
|
|
|
|
|
orange block quote
|
|
|
|
|
__________________
|
2011-11-16 23:52:10 +01:00
|
|
|
|
|
|
|
|
|
Multiple definitions, tight:
|
|
|
|
|
|
2011-11-19 04:46:12 +01:00
|
|
|
|
apple::
|
|
|
|
|
red fruit
|
|
|
|
|
+
|
|
|
|
|
computer
|
|
|
|
|
orange::
|
|
|
|
|
orange fruit
|
|
|
|
|
+
|
|
|
|
|
bank
|
2011-11-16 23:52:10 +01:00
|
|
|
|
|
|
|
|
|
Multiple definitions, loose:
|
|
|
|
|
|
2011-11-19 04:46:12 +01:00
|
|
|
|
apple::
|
|
|
|
|
red fruit
|
|
|
|
|
+
|
|
|
|
|
computer
|
|
|
|
|
orange::
|
|
|
|
|
orange fruit
|
|
|
|
|
+
|
|
|
|
|
bank
|
2011-11-16 23:52:10 +01:00
|
|
|
|
|
|
|
|
|
Blank line after term, indented marker, alternate markers:
|
|
|
|
|
|
2011-11-19 04:46:12 +01:00
|
|
|
|
apple::
|
|
|
|
|
red fruit
|
|
|
|
|
+
|
|
|
|
|
computer
|
|
|
|
|
orange::
|
|
|
|
|
orange fruit
|
|
|
|
|
+
|
|
|
|
|
1. sublist
|
|
|
|
|
2. sublist
|
2011-11-16 23:52:10 +01:00
|
|
|
|
|
|
|
|
|
HTML Blocks
|
|
|
|
|
-----------
|
|
|
|
|
|
|
|
|
|
Simple block on one line:
|
|
|
|
|
|
|
|
|
|
foo
|
|
|
|
|
And nested without indentation:
|
|
|
|
|
|
|
|
|
|
foo
|
|
|
|
|
bar
|
|
|
|
|
Interpreted markdown in a table:
|
|
|
|
|
|
2011-11-19 04:46:12 +01:00
|
|
|
|
This is _emphasized_
|
|
|
|
|
And this is *strong*
|
2011-11-16 23:52:10 +01:00
|
|
|
|
Here’s a simple block:
|
|
|
|
|
|
|
|
|
|
foo
|
|
|
|
|
This should be a code block, though:
|
|
|
|
|
|
2011-11-19 04:46:12 +01:00
|
|
|
|
-------
|
|
|
|
|
<div>
|
|
|
|
|
foo
|
|
|
|
|
</div>
|
|
|
|
|
-------
|
2011-11-16 23:52:10 +01:00
|
|
|
|
|
|
|
|
|
As should this:
|
|
|
|
|
|
2011-11-19 04:46:12 +01:00
|
|
|
|
--------------
|
|
|
|
|
<div>foo</div>
|
|
|
|
|
--------------
|
2011-11-16 23:52:10 +01:00
|
|
|
|
|
|
|
|
|
Now, nested:
|
|
|
|
|
|
|
|
|
|
foo
|
|
|
|
|
This should just be an HTML comment:
|
|
|
|
|
|
|
|
|
|
Multiline:
|
|
|
|
|
|
|
|
|
|
Code block:
|
|
|
|
|
|
2011-11-19 04:46:12 +01:00
|
|
|
|
----------------
|
|
|
|
|
<!-- Comment -->
|
|
|
|
|
----------------
|
2011-11-16 23:52:10 +01:00
|
|
|
|
|
|
|
|
|
Just plain comment, with trailing spaces on the line:
|
|
|
|
|
|
|
|
|
|
Code:
|
|
|
|
|
|
2011-11-19 04:46:12 +01:00
|
|
|
|
------
|
2011-11-16 23:52:10 +01:00
|
|
|
|
<hr />
|
2011-11-19 04:46:12 +01:00
|
|
|
|
------
|
2011-11-16 23:52:10 +01:00
|
|
|
|
|
2011-11-19 04:46:12 +01:00
|
|
|
|
Hr’s:
|
2011-11-16 23:52:10 +01:00
|
|
|
|
|
|
|
|
|
'''''
|
|
|
|
|
|
|
|
|
|
Inline Markup
|
|
|
|
|
-------------
|
|
|
|
|
|
2011-11-19 04:46:12 +01:00
|
|
|
|
This is _emphasized_, and so _is this_.
|
2011-11-16 23:52:10 +01:00
|
|
|
|
|
2011-11-19 04:46:12 +01:00
|
|
|
|
This is *strong*, and so *is this*.
|
2011-11-16 23:52:10 +01:00
|
|
|
|
|
2011-11-19 04:46:12 +01:00
|
|
|
|
An _link:/url[emphasized link]_.
|
2011-11-16 23:52:10 +01:00
|
|
|
|
|
2011-11-19 04:46:12 +01:00
|
|
|
|
*_This is strong and em._*
|
2011-11-16 23:52:10 +01:00
|
|
|
|
|
2011-11-19 04:46:12 +01:00
|
|
|
|
So is *_this_* word.
|
2011-11-16 23:52:10 +01:00
|
|
|
|
|
2011-11-19 04:46:12 +01:00
|
|
|
|
*_This is strong and em._*
|
2011-11-16 23:52:10 +01:00
|
|
|
|
|
2011-11-19 04:46:12 +01:00
|
|
|
|
So is *_this_* word.
|
2011-11-16 23:52:10 +01:00
|
|
|
|
|
|
|
|
|
This is code: `>`, `$`, `\`, `\$`, `<html>`.
|
|
|
|
|
|
2011-11-19 04:46:12 +01:00
|
|
|
|
[line-through]*This is _strikeout_.*
|
2011-11-16 23:52:10 +01:00
|
|
|
|
|
2011-11-19 04:46:12 +01:00
|
|
|
|
Superscripts: a^bc^d a^_hello_^ a^hello there^.
|
2011-11-16 23:52:10 +01:00
|
|
|
|
|
|
|
|
|
Subscripts: H~2~O, H~23~O, H~many of them~O.
|
|
|
|
|
|
|
|
|
|
These should not be superscripts or subscripts, because of the unescaped
|
2011-11-19 06:09:23 +01:00
|
|
|
|
spaces: a^b c^d, a~b c~d.
|
2011-11-16 23:52:10 +01:00
|
|
|
|
|
|
|
|
|
'''''
|
|
|
|
|
|
|
|
|
|
Smart quotes, ellipses, dashes
|
|
|
|
|
------------------------------
|
|
|
|
|
|
2011-11-19 04:46:12 +01:00
|
|
|
|
``Hello,'' said the spider. ```Shelob' is my name.''
|
2011-11-16 23:52:10 +01:00
|
|
|
|
|
2011-11-19 04:46:12 +01:00
|
|
|
|
`A', `B', and `C' are letters.
|
2011-11-16 23:52:10 +01:00
|
|
|
|
|
2011-11-19 04:46:12 +01:00
|
|
|
|
`Oak,' `elm,' and `beech' are names of trees. So is `pine.'
|
2011-11-16 23:52:10 +01:00
|
|
|
|
|
2011-11-19 04:46:12 +01:00
|
|
|
|
`He said, ``I want to go.''' Were you alive in the 70’s?
|
2011-11-16 23:52:10 +01:00
|
|
|
|
|
2011-11-19 04:50:45 +01:00
|
|
|
|
Here is some quoted ``code`' and a ``http://example.com/?foo=1&bar=2[quoted
|
|
|
|
|
link]''.
|
2011-11-16 23:52:10 +01:00
|
|
|
|
|
|
|
|
|
Some dashes: one—two — three—four — five.
|
|
|
|
|
|
|
|
|
|
Dashes between numbers: 5–7, 255–66, 1987–1999.
|
|
|
|
|
|
|
|
|
|
Ellipses…and…and….
|
|
|
|
|
|
|
|
|
|
'''''
|
|
|
|
|
|
|
|
|
|
LaTeX
|
|
|
|
|
-----
|
|
|
|
|
|
2011-11-19 04:46:12 +01:00
|
|
|
|
*
|
|
|
|
|
* latexmath:[$2+2=4$]
|
|
|
|
|
* latexmath:[$x \in y$]
|
|
|
|
|
* latexmath:[$\alpha \wedge \omega$]
|
|
|
|
|
* latexmath:[$223$]
|
|
|
|
|
* latexmath:[$p$]-Tree
|
|
|
|
|
* Here’s some display math:
|
2011-11-19 06:09:23 +01:00
|
|
|
|
latexmath:[\[\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}\]]
|
2011-11-19 04:46:12 +01:00
|
|
|
|
* Here’s one that has a line break in it:
|
|
|
|
|
latexmath:[$\alpha + \omega \times x^2$].
|
2011-11-16 23:52:10 +01:00
|
|
|
|
|
|
|
|
|
These shouldn’t be math:
|
|
|
|
|
|
2011-11-19 04:46:12 +01:00
|
|
|
|
* To get the famous equation, write `$e = mc^2$`.
|
|
|
|
|
* $22,000 is a _lot_ of money. So is $34,000. (It worked if ``lot'' is
|
|
|
|
|
emphasized.)
|
|
|
|
|
* Shoes ($20) and socks ($5).
|
|
|
|
|
* Escaped `$`: $73 _this should be emphasized_ 23$.
|
2011-11-16 23:52:10 +01:00
|
|
|
|
|
|
|
|
|
Here’s a LaTeX table:
|
|
|
|
|
|
|
|
|
|
'''''
|
|
|
|
|
|
|
|
|
|
Special Characters
|
|
|
|
|
------------------
|
|
|
|
|
|
|
|
|
|
Here is some unicode:
|
|
|
|
|
|
2011-11-19 04:46:12 +01:00
|
|
|
|
* I hat: Î
|
|
|
|
|
* o umlaut: ö
|
|
|
|
|
* section: §
|
|
|
|
|
* set membership: ∈
|
|
|
|
|
* copyright: ©
|
2011-11-16 23:52:10 +01:00
|
|
|
|
|
|
|
|
|
AT&T has an ampersand in their name.
|
|
|
|
|
|
|
|
|
|
AT&T is another way to write it.
|
|
|
|
|
|
|
|
|
|
This & that.
|
|
|
|
|
|
|
|
|
|
4 < 5.
|
|
|
|
|
|
2011-11-19 06:09:23 +01:00
|
|
|
|
6 > 5.
|
2011-11-16 23:52:10 +01:00
|
|
|
|
|
2011-11-19 06:09:23 +01:00
|
|
|
|
Backslash: \
|
2011-11-16 23:52:10 +01:00
|
|
|
|
|
2011-11-19 06:09:23 +01:00
|
|
|
|
Backtick: `
|
2011-11-16 23:52:10 +01:00
|
|
|
|
|
2011-11-19 06:09:23 +01:00
|
|
|
|
Asterisk: *
|
2011-11-16 23:52:10 +01:00
|
|
|
|
|
2011-11-19 06:09:23 +01:00
|
|
|
|
Underscore: _
|
2011-11-16 23:52:10 +01:00
|
|
|
|
|
2011-11-19 04:46:12 +01:00
|
|
|
|
Left brace: \{
|
2011-11-16 23:52:10 +01:00
|
|
|
|
|
|
|
|
|
Right brace: }
|
|
|
|
|
|
|
|
|
|
Left bracket: [
|
|
|
|
|
|
|
|
|
|
Right bracket: ]
|
|
|
|
|
|
|
|
|
|
Left paren: (
|
|
|
|
|
|
|
|
|
|
Right paren: )
|
|
|
|
|
|
2011-11-19 06:09:23 +01:00
|
|
|
|
Greater-than: >
|
2011-11-16 23:52:10 +01:00
|
|
|
|
|
2011-11-19 06:09:23 +01:00
|
|
|
|
Hash: #
|
2011-11-16 23:52:10 +01:00
|
|
|
|
|
|
|
|
|
Period: .
|
|
|
|
|
|
|
|
|
|
Bang: !
|
|
|
|
|
|
2011-11-19 06:09:23 +01:00
|
|
|
|
Plus: +
|
2011-11-16 23:52:10 +01:00
|
|
|
|
|
|
|
|
|
Minus: -
|
|
|
|
|
|
|
|
|
|
'''''
|
|
|
|
|
|
|
|
|
|
Links
|
|
|
|
|
-----
|
|
|
|
|
|
|
|
|
|
Explicit
|
|
|
|
|
~~~~~~~~
|
|
|
|
|
|
2011-11-19 04:46:12 +01:00
|
|
|
|
Just a link:/url/[URL].
|
2011-11-16 23:52:10 +01:00
|
|
|
|
|
2011-11-19 04:46:12 +01:00
|
|
|
|
link:/url/[URL and title].
|
2011-11-16 23:52:10 +01:00
|
|
|
|
|
2011-11-19 04:46:12 +01:00
|
|
|
|
link:/url/[URL and title].
|
2011-11-16 23:52:10 +01:00
|
|
|
|
|
2011-11-19 04:46:12 +01:00
|
|
|
|
link:/url/[URL and title].
|
2011-11-16 23:52:10 +01:00
|
|
|
|
|
2011-11-19 04:46:12 +01:00
|
|
|
|
link:/url/[URL and title]
|
2011-11-16 23:52:10 +01:00
|
|
|
|
|
2011-11-19 04:46:12 +01:00
|
|
|
|
link:/url/[URL and title]
|
2011-11-16 23:52:10 +01:00
|
|
|
|
|
2011-11-19 06:09:23 +01:00
|
|
|
|
link:/url/with_underscore[with_underscore]
|
2011-11-16 23:52:10 +01:00
|
|
|
|
|
2011-11-19 04:46:12 +01:00
|
|
|
|
mailto:nobody@nowhere.net[Email link]
|
2011-11-16 23:52:10 +01:00
|
|
|
|
|
2011-11-19 04:46:12 +01:00
|
|
|
|
link:[Empty].
|
2011-11-16 23:52:10 +01:00
|
|
|
|
|
|
|
|
|
Reference
|
|
|
|
|
~~~~~~~~~
|
|
|
|
|
|
2011-11-19 04:46:12 +01:00
|
|
|
|
Foo link:/url/[bar].
|
2011-11-16 23:52:10 +01:00
|
|
|
|
|
2011-11-19 04:46:12 +01:00
|
|
|
|
Foo link:/url/[bar].
|
2011-11-16 23:52:10 +01:00
|
|
|
|
|
2011-11-19 04:46:12 +01:00
|
|
|
|
Foo link:/url/[bar].
|
2011-11-16 23:52:10 +01:00
|
|
|
|
|
2011-11-19 04:46:12 +01:00
|
|
|
|
With link:/url/[embedded [brackets]].
|
2011-11-16 23:52:10 +01:00
|
|
|
|
|
2011-11-19 04:46:12 +01:00
|
|
|
|
link:/url/[b] by itself should be a link.
|
2011-11-16 23:52:10 +01:00
|
|
|
|
|
2011-11-19 04:46:12 +01:00
|
|
|
|
Indented link:/url[once].
|
2011-11-16 23:52:10 +01:00
|
|
|
|
|
2011-11-19 04:46:12 +01:00
|
|
|
|
Indented link:/url[twice].
|
2011-11-16 23:52:10 +01:00
|
|
|
|
|
2011-11-19 04:46:12 +01:00
|
|
|
|
Indented link:/url[thrice].
|
2011-11-16 23:52:10 +01:00
|
|
|
|
|
|
|
|
|
This should [not][] be a link.
|
|
|
|
|
|
2011-11-19 04:46:12 +01:00
|
|
|
|
-----------
|
|
|
|
|
[not]: /url
|
|
|
|
|
-----------
|
2011-11-16 23:52:10 +01:00
|
|
|
|
|
2011-11-19 04:46:12 +01:00
|
|
|
|
Foo link:/url/[bar].
|
2011-11-16 23:52:10 +01:00
|
|
|
|
|
2011-11-19 04:46:12 +01:00
|
|
|
|
Foo link:/url/[biz].
|
2011-11-16 23:52:10 +01:00
|
|
|
|
|
|
|
|
|
With ampersands
|
|
|
|
|
~~~~~~~~~~~~~~~
|
|
|
|
|
|
2011-11-19 04:50:45 +01:00
|
|
|
|
Here’s a http://example.com/?foo=1&bar=2[link with an ampersand in the URL].
|
2011-11-16 23:52:10 +01:00
|
|
|
|
|
2011-11-19 04:46:12 +01:00
|
|
|
|
Here’s a link with an amersand in the link text: http://att.com/[AT&T].
|
2011-11-16 23:52:10 +01:00
|
|
|
|
|
2011-11-19 04:46:12 +01:00
|
|
|
|
Here’s an link:/script?foo=1&bar=2[inline link].
|
2011-11-16 23:52:10 +01:00
|
|
|
|
|
2011-11-19 04:46:12 +01:00
|
|
|
|
Here’s an link:/script?foo=1&bar=2[inline link in pointy braces].
|
2011-11-16 23:52:10 +01:00
|
|
|
|
|
|
|
|
|
Autolinks
|
|
|
|
|
~~~~~~~~~
|
|
|
|
|
|
2011-11-19 04:46:12 +01:00
|
|
|
|
With an ampersand: http://example.com/?foo=1&bar=2
|
2011-11-16 23:52:10 +01:00
|
|
|
|
|
2011-11-19 04:46:12 +01:00
|
|
|
|
* In a list?
|
|
|
|
|
* http://example.com/
|
|
|
|
|
* It should.
|
2011-11-16 23:52:10 +01:00
|
|
|
|
|
2011-11-19 04:46:12 +01:00
|
|
|
|
An e-mail address: nobody@nowhere.net
|
2011-11-16 23:52:10 +01:00
|
|
|
|
|
2011-11-19 04:46:12 +01:00
|
|
|
|
________________________________
|
|
|
|
|
Blockquoted: http://example.com/
|
|
|
|
|
________________________________
|
2011-11-16 23:52:10 +01:00
|
|
|
|
|
|
|
|
|
Auto-links should not occur here: `<http://example.com/>`
|
|
|
|
|
|
2011-11-19 04:46:12 +01:00
|
|
|
|
------------------------------
|
|
|
|
|
or here: <http://example.com/>
|
|
|
|
|
------------------------------
|
2011-11-16 23:52:10 +01:00
|
|
|
|
|
|
|
|
|
'''''
|
|
|
|
|
|
|
|
|
|
Images
|
|
|
|
|
------
|
|
|
|
|
|
2011-11-19 04:46:12 +01:00
|
|
|
|
From ``Voyage dans la Lune'' by Georges Melies (1902):
|
2011-11-16 23:52:10 +01:00
|
|
|
|
|
2011-11-19 04:46:12 +01:00
|
|
|
|
image:lalune.jpg[lalune,title="Voyage dans la Lune"]
|
2011-11-16 23:52:10 +01:00
|
|
|
|
|
2011-11-19 04:46:12 +01:00
|
|
|
|
Here is a movie image:movie.jpg[movie] icon.
|
2011-11-16 23:52:10 +01:00
|
|
|
|
|
|
|
|
|
'''''
|
|
|
|
|
|
|
|
|
|
Footnotes
|
|
|
|
|
---------
|
|
|
|
|
|
2011-11-19 04:46:12 +01:00
|
|
|
|
Here is a footnote reference,footnote:[Here is the footnote. It can go
|
2011-11-19 04:50:45 +01:00
|
|
|
|
anywhere after the footnote reference. It need not be placed at the end of the
|
|
|
|
|
document.] and another.[multiblock footnote omitted] This should _not_ be a
|
2011-11-19 06:09:23 +01:00
|
|
|
|
footnote reference, because it contains a space.[^my note] Here is an inline
|
2011-11-19 04:50:45 +01:00
|
|
|
|
note.footnote:[This is _easier_ to type. Inline notes may contain
|
|
|
|
|
http://google.com[links] and `]` verbatim characters, as well as [bracketed
|
|
|
|
|
text].]
|
2011-11-16 23:52:10 +01:00
|
|
|
|
|
2011-11-19 04:46:12 +01:00
|
|
|
|
___________________________________________
|
|
|
|
|
Notes can go in quotes.footnote:[In quote.]
|
|
|
|
|
___________________________________________
|
2011-11-16 23:52:10 +01:00
|
|
|
|
|
2011-11-19 04:46:12 +01:00
|
|
|
|
1. And in list items.footnote:[In list.]
|
2011-11-16 23:52:10 +01:00
|
|
|
|
|
|
|
|
|
This paragraph should not be part of the note, as it is not indented.
|