2010-03-18 07:45:43 +01:00
|
|
|
|
Pandoc Test Suite
|
|
|
|
|
John MacFarlane; Anonymous
|
|
|
|
|
July 17, 2006
|
|
|
|
|
|
2010-12-13 05:09:14 +01:00
|
|
|
|
This is a set of tests for pandoc. Most of them are adapted from John Gruber’s
|
|
|
|
|
markdown test suite.
|
2010-03-18 07:45:43 +01:00
|
|
|
|
|
2014-07-27 16:57:23 +02:00
|
|
|
|
------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
2010-03-18 07:45:43 +01:00
|
|
|
|
|
2014-08-09 00:20:29 +02:00
|
|
|
|
HEADERS
|
2014-07-27 16:57:23 +02:00
|
|
|
|
|
2010-03-18 07:45:43 +01:00
|
|
|
|
|
|
|
|
|
Level 2 with an embedded link
|
|
|
|
|
|
2014-07-27 16:57:23 +02:00
|
|
|
|
Level 3 with _emphasis_
|
2010-03-18 07:45:43 +01:00
|
|
|
|
|
|
|
|
|
Level 4
|
|
|
|
|
|
|
|
|
|
Level 5
|
|
|
|
|
|
2014-07-27 16:57:23 +02:00
|
|
|
|
|
|
|
|
|
|
2014-08-09 00:20:29 +02:00
|
|
|
|
LEVEL 1
|
2010-03-18 07:45:43 +01:00
|
|
|
|
|
2014-07-27 16:57:23 +02:00
|
|
|
|
|
|
|
|
|
Level 2 with _emphasis_
|
2010-03-18 07:45:43 +01:00
|
|
|
|
|
|
|
|
|
Level 3
|
|
|
|
|
|
|
|
|
|
with no blank line
|
|
|
|
|
|
2014-07-27 16:57:23 +02:00
|
|
|
|
|
2010-03-18 07:45:43 +01:00
|
|
|
|
Level 2
|
|
|
|
|
|
|
|
|
|
with no blank line
|
|
|
|
|
|
2014-07-27 16:57:23 +02:00
|
|
|
|
------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
2010-03-18 07:45:43 +01:00
|
|
|
|
|
2014-08-09 00:20:29 +02:00
|
|
|
|
PARAGRAPHS
|
2014-07-27 16:57:23 +02:00
|
|
|
|
|
2010-03-18 07:45:43 +01:00
|
|
|
|
|
2010-07-01 03:53:35 +02:00
|
|
|
|
Here’s a regular paragraph.
|
2010-03-18 07:45:43 +01:00
|
|
|
|
|
2010-12-13 05:09:14 +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.
|
2010-03-18 07:45:43 +01:00
|
|
|
|
|
2010-07-01 03:53:35 +02:00
|
|
|
|
Here’s one with a bullet. * criminey.
|
2010-03-18 07:45:43 +01:00
|
|
|
|
|
2014-07-27 16:57:23 +02:00
|
|
|
|
There should be a hard line break
|
2010-03-18 07:45:43 +01:00
|
|
|
|
here.
|
|
|
|
|
|
2014-07-27 16:57:23 +02:00
|
|
|
|
------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
2010-03-18 07:45:43 +01:00
|
|
|
|
|
2014-08-09 00:20:29 +02:00
|
|
|
|
BLOCK QUOTES
|
2014-07-27 16:57:23 +02:00
|
|
|
|
|
2010-03-18 07:45:43 +01:00
|
|
|
|
|
|
|
|
|
E-mail style:
|
|
|
|
|
|
|
|
|
|
This is a block quote. It is pretty short.
|
|
|
|
|
|
|
|
|
|
Code in a block quote:
|
2010-12-13 05:09:14 +01:00
|
|
|
|
|
2010-03-18 07:45:43 +01:00
|
|
|
|
sub status {
|
|
|
|
|
print "working";
|
|
|
|
|
}
|
2010-12-13 05:09:14 +01:00
|
|
|
|
|
2010-03-18 07:45:43 +01:00
|
|
|
|
A list:
|
2010-12-13 05:09:14 +01:00
|
|
|
|
|
2010-03-18 07:45:43 +01:00
|
|
|
|
1. item one
|
|
|
|
|
2. item two
|
2010-12-13 05:09:14 +01:00
|
|
|
|
|
2010-03-18 07:45:43 +01:00
|
|
|
|
Nested block quotes:
|
2010-12-13 05:09:14 +01:00
|
|
|
|
|
2010-03-18 07:45:43 +01:00
|
|
|
|
nested
|
2010-12-13 05:09:14 +01:00
|
|
|
|
|
2010-03-18 07:45:43 +01:00
|
|
|
|
nested
|
|
|
|
|
|
|
|
|
|
This should not be a block quote: 2 > 1.
|
|
|
|
|
|
|
|
|
|
And a following paragraph.
|
|
|
|
|
|
2014-07-27 16:57:23 +02:00
|
|
|
|
------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
2010-03-18 07:45:43 +01:00
|
|
|
|
|
2014-08-09 00:20:29 +02:00
|
|
|
|
CODE BLOCKS
|
2014-07-27 16:57:23 +02:00
|
|
|
|
|
2010-03-18 07:45:43 +01:00
|
|
|
|
|
|
|
|
|
Code:
|
|
|
|
|
|
|
|
|
|
---- (should be four hyphens)
|
2010-12-13 05:09:14 +01:00
|
|
|
|
|
2010-03-18 07:45:43 +01:00
|
|
|
|
sub status {
|
|
|
|
|
print "working";
|
|
|
|
|
}
|
2010-12-13 05:09:14 +01:00
|
|
|
|
|
2010-03-18 07:45:43 +01:00
|
|
|
|
this code block is indented by one tab
|
|
|
|
|
|
|
|
|
|
And:
|
|
|
|
|
|
|
|
|
|
this code block is indented by two tabs
|
|
|
|
|
|
2010-12-13 05:09:14 +01:00
|
|
|
|
These should not be escaped: \$ \\ \> \[ \{
|
2010-03-18 07:45:43 +01:00
|
|
|
|
|
2014-07-27 16:57:23 +02:00
|
|
|
|
------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
2010-03-18 07:45:43 +01:00
|
|
|
|
|
2014-08-09 00:20:29 +02:00
|
|
|
|
LISTS
|
2014-07-27 16:57:23 +02:00
|
|
|
|
|
2010-03-18 07:45:43 +01:00
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
2014-07-27 16:57:23 +02:00
|
|
|
|
|
2010-03-18 07:45:43 +01:00
|
|
|
|
Ordered
|
|
|
|
|
|
|
|
|
|
Tight:
|
|
|
|
|
|
|
|
|
|
1. First
|
|
|
|
|
2. Second
|
|
|
|
|
3. Third
|
|
|
|
|
|
|
|
|
|
and:
|
|
|
|
|
|
|
|
|
|
1. One
|
|
|
|
|
2. Two
|
|
|
|
|
3. Three
|
|
|
|
|
|
|
|
|
|
Loose using tabs:
|
|
|
|
|
|
|
|
|
|
1. First
|
|
|
|
|
|
|
|
|
|
2. Second
|
|
|
|
|
|
|
|
|
|
3. Third
|
|
|
|
|
|
|
|
|
|
and using spaces:
|
|
|
|
|
|
|
|
|
|
1. One
|
|
|
|
|
|
|
|
|
|
2. Two
|
|
|
|
|
|
|
|
|
|
3. Three
|
|
|
|
|
|
|
|
|
|
Multiple paragraphs:
|
|
|
|
|
|
|
|
|
|
1. Item 1, graf one.
|
|
|
|
|
|
2010-12-13 05:09:14 +01:00
|
|
|
|
Item 1. graf two. The quick brown fox jumped over the lazy dog’s back.
|
2010-03-18 07:45:43 +01:00
|
|
|
|
|
|
|
|
|
2. Item 2.
|
|
|
|
|
|
|
|
|
|
3. Item 3.
|
|
|
|
|
|
2014-07-27 16:57:23 +02:00
|
|
|
|
|
2010-03-18 07:45:43 +01:00
|
|
|
|
Nested
|
|
|
|
|
|
|
|
|
|
- Tab
|
|
|
|
|
- Tab
|
|
|
|
|
- Tab
|
|
|
|
|
|
2010-07-01 03:53:35 +02:00
|
|
|
|
Here’s another:
|
2010-03-18 07:45:43 +01:00
|
|
|
|
|
|
|
|
|
1. First
|
|
|
|
|
2. Second:
|
|
|
|
|
- Fee
|
|
|
|
|
- Fie
|
|
|
|
|
- Foe
|
|
|
|
|
3. Third
|
|
|
|
|
|
|
|
|
|
Same thing but with paragraphs:
|
|
|
|
|
|
|
|
|
|
1. First
|
|
|
|
|
|
|
|
|
|
2. Second:
|
|
|
|
|
|
|
|
|
|
- Fee
|
|
|
|
|
- Fie
|
|
|
|
|
- Foe
|
|
|
|
|
|
|
|
|
|
3. Third
|
|
|
|
|
|
2014-07-27 16:57:23 +02:00
|
|
|
|
|
2010-03-18 07:45:43 +01:00
|
|
|
|
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
|
|
|
|
|
|
2014-07-27 16:57:23 +02:00
|
|
|
|
|
2010-03-18 07:45:43 +01:00
|
|
|
|
Fancy list markers
|
|
|
|
|
|
|
|
|
|
(2) begins with 2
|
|
|
|
|
(3) and now 3
|
|
|
|
|
|
|
|
|
|
with a continuation
|
|
|
|
|
|
|
|
|
|
iv. sublist with roman numerals, starting with 4
|
|
|
|
|
v. more items
|
|
|
|
|
(A) a subsublist
|
|
|
|
|
(B) a subsublist
|
|
|
|
|
|
|
|
|
|
Nesting:
|
|
|
|
|
|
|
|
|
|
A. Upper Alpha
|
|
|
|
|
I. Upper Roman.
|
|
|
|
|
(6) Decimal start with 6
|
|
|
|
|
c) Lower alpha with paren
|
|
|
|
|
|
|
|
|
|
Autonumbering:
|
|
|
|
|
|
|
|
|
|
1. Autonumber.
|
|
|
|
|
2. More.
|
|
|
|
|
1. Nested.
|
|
|
|
|
|
|
|
|
|
Should not be a list item:
|
|
|
|
|
|
|
|
|
|
M.A. 2007
|
|
|
|
|
|
|
|
|
|
B. Williams
|
|
|
|
|
|
2014-07-27 16:57:23 +02:00
|
|
|
|
------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
2010-03-18 07:45:43 +01:00
|
|
|
|
|
2014-08-09 00:20:29 +02:00
|
|
|
|
DEFINITION LISTS
|
2014-07-27 16:57:23 +02:00
|
|
|
|
|
2010-03-18 07:45:43 +01:00
|
|
|
|
|
|
|
|
|
Tight using spaces:
|
|
|
|
|
|
|
|
|
|
apple
|
|
|
|
|
red fruit
|
2014-07-27 16:57:23 +02:00
|
|
|
|
|
2010-03-18 07:45:43 +01:00
|
|
|
|
orange
|
|
|
|
|
orange fruit
|
2014-07-27 16:57:23 +02:00
|
|
|
|
|
2010-03-18 07:45:43 +01:00
|
|
|
|
banana
|
|
|
|
|
yellow fruit
|
|
|
|
|
|
|
|
|
|
Tight using tabs:
|
|
|
|
|
|
|
|
|
|
apple
|
|
|
|
|
red fruit
|
2014-07-27 16:57:23 +02:00
|
|
|
|
|
2010-03-18 07:45:43 +01:00
|
|
|
|
orange
|
|
|
|
|
orange fruit
|
2014-07-27 16:57:23 +02:00
|
|
|
|
|
2010-03-18 07:45:43 +01:00
|
|
|
|
banana
|
|
|
|
|
yellow fruit
|
|
|
|
|
|
|
|
|
|
Loose:
|
|
|
|
|
|
|
|
|
|
apple
|
2014-07-27 16:57:23 +02:00
|
|
|
|
|
2010-03-18 07:45:43 +01:00
|
|
|
|
red fruit
|
|
|
|
|
|
|
|
|
|
orange
|
2014-07-27 16:57:23 +02:00
|
|
|
|
|
2010-03-18 07:45:43 +01:00
|
|
|
|
orange fruit
|
|
|
|
|
|
|
|
|
|
banana
|
2014-07-27 16:57:23 +02:00
|
|
|
|
|
2010-03-18 07:45:43 +01:00
|
|
|
|
yellow fruit
|
|
|
|
|
|
|
|
|
|
Multiple blocks with italics:
|
|
|
|
|
|
2014-07-27 16:57:23 +02:00
|
|
|
|
_apple_
|
|
|
|
|
|
2010-03-18 07:45:43 +01:00
|
|
|
|
red fruit
|
|
|
|
|
|
|
|
|
|
contains seeds, crisp, pleasant to taste
|
|
|
|
|
|
2014-07-27 16:57:23 +02:00
|
|
|
|
_orange_
|
|
|
|
|
|
2010-03-18 07:45:43 +01:00
|
|
|
|
orange fruit
|
|
|
|
|
|
|
|
|
|
{ orange code block }
|
|
|
|
|
|
|
|
|
|
orange block quote
|
|
|
|
|
|
|
|
|
|
Multiple definitions, tight:
|
|
|
|
|
|
|
|
|
|
apple
|
|
|
|
|
red fruit
|
|
|
|
|
computer
|
2014-07-27 16:57:23 +02:00
|
|
|
|
|
2010-03-18 07:45:43 +01:00
|
|
|
|
orange
|
|
|
|
|
orange fruit
|
|
|
|
|
bank
|
|
|
|
|
|
|
|
|
|
Multiple definitions, loose:
|
|
|
|
|
|
|
|
|
|
apple
|
2014-07-27 16:57:23 +02:00
|
|
|
|
|
2010-03-18 07:45:43 +01:00
|
|
|
|
red fruit
|
|
|
|
|
|
|
|
|
|
computer
|
|
|
|
|
|
|
|
|
|
orange
|
2014-07-27 16:57:23 +02:00
|
|
|
|
|
2010-03-18 07:45:43 +01:00
|
|
|
|
orange fruit
|
|
|
|
|
|
|
|
|
|
bank
|
|
|
|
|
|
|
|
|
|
Blank line after term, indented marker, alternate markers:
|
|
|
|
|
|
|
|
|
|
apple
|
2014-07-27 16:57:23 +02:00
|
|
|
|
|
2010-03-18 07:45:43 +01:00
|
|
|
|
red fruit
|
|
|
|
|
|
|
|
|
|
computer
|
|
|
|
|
|
|
|
|
|
orange
|
2014-07-27 16:57:23 +02:00
|
|
|
|
|
2010-03-18 07:45:43 +01:00
|
|
|
|
orange fruit
|
|
|
|
|
|
|
|
|
|
1. sublist
|
|
|
|
|
2. sublist
|
|
|
|
|
|
2014-07-27 16:57:23 +02:00
|
|
|
|
|
|
|
|
|
|
2014-08-09 00:20:29 +02:00
|
|
|
|
HTML BLOCKS
|
2014-07-27 16:57:23 +02:00
|
|
|
|
|
2010-03-18 07:45:43 +01:00
|
|
|
|
|
|
|
|
|
Simple block on one line:
|
|
|
|
|
|
|
|
|
|
foo
|
2013-08-18 23:36:40 +02:00
|
|
|
|
|
2010-03-18 07:45:43 +01:00
|
|
|
|
And nested without indentation:
|
|
|
|
|
|
|
|
|
|
foo
|
2013-08-18 23:36:40 +02:00
|
|
|
|
|
2010-03-18 07:45:43 +01:00
|
|
|
|
bar
|
2013-08-18 23:36:40 +02:00
|
|
|
|
|
2010-03-18 07:45:43 +01:00
|
|
|
|
Interpreted markdown in a table:
|
|
|
|
|
|
2014-07-27 16:57:23 +02:00
|
|
|
|
This is _emphasized_
|
|
|
|
|
And this is STRONG
|
2010-07-01 03:53:35 +02:00
|
|
|
|
Here’s a simple block:
|
2010-03-18 07:45:43 +01:00
|
|
|
|
|
|
|
|
|
foo
|
2013-08-18 23:36:40 +02:00
|
|
|
|
|
2010-03-18 07:45:43 +01:00
|
|
|
|
This should be a code block, though:
|
|
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
foo
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
As should this:
|
|
|
|
|
|
|
|
|
|
<div>foo</div>
|
|
|
|
|
|
|
|
|
|
Now, nested:
|
|
|
|
|
|
|
|
|
|
foo
|
2013-08-18 23:36:40 +02:00
|
|
|
|
|
2010-03-18 07:45:43 +01:00
|
|
|
|
This should just be an HTML comment:
|
|
|
|
|
|
|
|
|
|
Multiline:
|
|
|
|
|
|
|
|
|
|
Code block:
|
|
|
|
|
|
|
|
|
|
<!-- Comment -->
|
|
|
|
|
|
|
|
|
|
Just plain comment, with trailing spaces on the line:
|
|
|
|
|
|
|
|
|
|
Code:
|
|
|
|
|
|
|
|
|
|
<hr />
|
|
|
|
|
|
2010-07-01 03:53:35 +02:00
|
|
|
|
Hr’s:
|
2010-03-18 07:45:43 +01:00
|
|
|
|
|
2014-07-27 16:57:23 +02:00
|
|
|
|
------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
2010-03-18 07:45:43 +01:00
|
|
|
|
|
2014-08-09 00:20:29 +02:00
|
|
|
|
INLINE MARKUP
|
2010-03-18 07:45:43 +01:00
|
|
|
|
|
|
|
|
|
|
2014-07-27 16:57:23 +02:00
|
|
|
|
This is _emphasized_, and so _is this_.
|
|
|
|
|
|
|
|
|
|
This is STRONG, and so IS THIS.
|
2010-03-18 07:45:43 +01:00
|
|
|
|
|
2014-07-27 16:57:23 +02:00
|
|
|
|
An _emphasized link_.
|
2010-03-18 07:45:43 +01:00
|
|
|
|
|
2014-07-27 16:57:23 +02:00
|
|
|
|
_THIS IS STRONG AND EM._
|
2010-03-18 07:45:43 +01:00
|
|
|
|
|
2014-07-27 16:57:23 +02:00
|
|
|
|
So is _THIS_ word.
|
2010-03-18 07:45:43 +01:00
|
|
|
|
|
2014-07-27 16:57:23 +02:00
|
|
|
|
_THIS IS STRONG AND EM._
|
2010-03-18 07:45:43 +01:00
|
|
|
|
|
2014-07-27 16:57:23 +02:00
|
|
|
|
So is _THIS_ word.
|
2010-03-18 07:45:43 +01:00
|
|
|
|
|
|
|
|
|
This is code: >, $, \, \$, <html>.
|
|
|
|
|
|
2014-07-27 16:57:23 +02:00
|
|
|
|
~~This is _strikeout_.~~
|
2010-03-18 07:45:43 +01:00
|
|
|
|
|
2015-06-28 05:18:42 +02:00
|
|
|
|
Superscripts: abcd a_hello_ ahello there.
|
2010-03-18 07:45:43 +01:00
|
|
|
|
|
2015-10-15 23:35:01 +02:00
|
|
|
|
Subscripts: H₂O, H₂₃O, Hmany of themO.
|
2010-03-18 07:45:43 +01:00
|
|
|
|
|
2010-12-13 05:09:14 +01:00
|
|
|
|
These should not be superscripts or subscripts, because of the unescaped
|
|
|
|
|
spaces: a^b c^d, a~b c~d.
|
2010-03-18 07:45:43 +01:00
|
|
|
|
|
2014-07-27 16:57:23 +02:00
|
|
|
|
------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
2010-03-18 07:45:43 +01:00
|
|
|
|
|
2014-08-09 00:20:29 +02:00
|
|
|
|
SMART QUOTES, ELLIPSES, DASHES
|
2014-07-27 16:57:23 +02:00
|
|
|
|
|
2010-03-18 07:45:43 +01:00
|
|
|
|
|
2010-07-01 03:53:35 +02:00
|
|
|
|
“Hello,” said the spider. “‘Shelob’ is my name.”
|
2010-03-18 07:45:43 +01:00
|
|
|
|
|
2010-07-01 03:53:35 +02:00
|
|
|
|
‘A’, ‘B’, and ‘C’ are letters.
|
2010-03-18 07:45:43 +01:00
|
|
|
|
|
2010-07-01 03:53:35 +02:00
|
|
|
|
‘Oak,’ ‘elm,’ and ‘beech’ are names of trees. So is ‘pine.’
|
2010-03-18 07:45:43 +01:00
|
|
|
|
|
2010-07-01 03:53:35 +02:00
|
|
|
|
‘He said, “I want to go.”’ Were you alive in the 70’s?
|
2010-03-18 07:45:43 +01:00
|
|
|
|
|
2010-07-01 03:53:35 +02:00
|
|
|
|
Here is some quoted ‘code’ and a “quoted link”.
|
2010-03-18 07:45:43 +01:00
|
|
|
|
|
2010-07-01 03:53:35 +02:00
|
|
|
|
Some dashes: one—two — three—four — five.
|
2010-03-18 07:45:43 +01:00
|
|
|
|
|
2010-07-01 03:53:35 +02:00
|
|
|
|
Dashes between numbers: 5–7, 255–66, 1987–1999.
|
2010-03-18 07:45:43 +01:00
|
|
|
|
|
2010-07-01 03:53:35 +02:00
|
|
|
|
Ellipses…and…and….
|
2010-03-18 07:45:43 +01:00
|
|
|
|
|
2014-07-27 16:57:23 +02:00
|
|
|
|
------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
2010-03-18 07:45:43 +01:00
|
|
|
|
|
2014-08-09 00:20:29 +02:00
|
|
|
|
LATEX
|
2010-03-18 07:45:43 +01:00
|
|
|
|
|
2014-07-27 16:57:23 +02:00
|
|
|
|
|
2014-08-08 22:34:57 +02:00
|
|
|
|
-
|
2014-07-27 16:57:23 +02:00
|
|
|
|
- 2 + 2 = 4
|
|
|
|
|
- x ∈ y
|
|
|
|
|
- α ∧ ω
|
2010-03-18 07:45:43 +01:00
|
|
|
|
- 223
|
|
|
|
|
- p-Tree
|
2010-07-01 03:53:35 +02:00
|
|
|
|
- Here’s some display math:
|
2014-07-27 16:57:23 +02:00
|
|
|
|
$$\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}$$
|
2015-10-15 23:35:01 +02:00
|
|
|
|
- Here’s one that has a line break in it: α + ω × x².
|
2010-03-18 07:45:43 +01:00
|
|
|
|
|
2010-07-01 03:53:35 +02:00
|
|
|
|
These shouldn’t be math:
|
2010-03-18 07:45:43 +01:00
|
|
|
|
|
|
|
|
|
- To get the famous equation, write $e = mc^2$.
|
2016-12-04 17:13:06 +01:00
|
|
|
|
- $22,000 is a _lot_ of money. So is $34,000. (It worked if “lot” is
|
|
|
|
|
emphasized.)
|
2010-03-18 07:45:43 +01:00
|
|
|
|
- Shoes ($20) and socks ($5).
|
2014-07-27 16:57:23 +02:00
|
|
|
|
- Escaped $: $73 _this should be emphasized_ 23$.
|
2010-03-18 07:45:43 +01:00
|
|
|
|
|
2010-07-01 03:53:35 +02:00
|
|
|
|
Here’s a LaTeX table:
|
2010-03-18 07:45:43 +01:00
|
|
|
|
|
2014-07-27 16:57:23 +02:00
|
|
|
|
------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
2010-03-18 07:45:43 +01:00
|
|
|
|
|
2014-08-09 00:20:29 +02:00
|
|
|
|
SPECIAL CHARACTERS
|
2014-07-27 16:57:23 +02:00
|
|
|
|
|
2010-03-18 07:45:43 +01:00
|
|
|
|
|
|
|
|
|
Here is some unicode:
|
|
|
|
|
|
|
|
|
|
- I hat: Î
|
|
|
|
|
- o umlaut: ö
|
|
|
|
|
- section: §
|
|
|
|
|
- set membership: ∈
|
|
|
|
|
- copyright: ©
|
|
|
|
|
|
|
|
|
|
AT&T has an ampersand in their name.
|
|
|
|
|
|
|
|
|
|
AT&T is another way to write it.
|
|
|
|
|
|
|
|
|
|
This & that.
|
|
|
|
|
|
|
|
|
|
4 < 5.
|
|
|
|
|
|
|
|
|
|
6 > 5.
|
|
|
|
|
|
|
|
|
|
Backslash: \
|
|
|
|
|
|
|
|
|
|
Backtick: `
|
|
|
|
|
|
|
|
|
|
Asterisk: *
|
|
|
|
|
|
|
|
|
|
Underscore: _
|
|
|
|
|
|
|
|
|
|
Left brace: {
|
|
|
|
|
|
|
|
|
|
Right brace: }
|
|
|
|
|
|
|
|
|
|
Left bracket: [
|
|
|
|
|
|
|
|
|
|
Right bracket: ]
|
|
|
|
|
|
|
|
|
|
Left paren: (
|
|
|
|
|
|
|
|
|
|
Right paren: )
|
|
|
|
|
|
|
|
|
|
Greater-than: >
|
|
|
|
|
|
|
|
|
|
Hash: #
|
|
|
|
|
|
|
|
|
|
Period: .
|
|
|
|
|
|
|
|
|
|
Bang: !
|
|
|
|
|
|
|
|
|
|
Plus: +
|
|
|
|
|
|
|
|
|
|
Minus: -
|
|
|
|
|
|
2014-07-27 16:57:23 +02:00
|
|
|
|
------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
2010-03-18 07:45:43 +01:00
|
|
|
|
|
2014-08-09 00:20:29 +02:00
|
|
|
|
LINKS
|
2014-07-27 16:57:23 +02:00
|
|
|
|
|
2010-03-18 07:45:43 +01:00
|
|
|
|
|
|
|
|
|
Explicit
|
|
|
|
|
|
|
|
|
|
Just a URL.
|
|
|
|
|
|
|
|
|
|
URL and title.
|
|
|
|
|
|
|
|
|
|
URL and title.
|
|
|
|
|
|
|
|
|
|
URL and title.
|
|
|
|
|
|
|
|
|
|
URL and title
|
|
|
|
|
|
|
|
|
|
URL and title
|
|
|
|
|
|
|
|
|
|
with_underscore
|
|
|
|
|
|
|
|
|
|
Email link
|
|
|
|
|
|
|
|
|
|
Empty.
|
|
|
|
|
|
2014-07-27 16:57:23 +02:00
|
|
|
|
|
2010-03-18 07:45:43 +01:00
|
|
|
|
Reference
|
|
|
|
|
|
|
|
|
|
Foo bar.
|
|
|
|
|
|
|
|
|
|
Foo bar.
|
|
|
|
|
|
|
|
|
|
Foo bar.
|
|
|
|
|
|
|
|
|
|
With embedded [brackets].
|
|
|
|
|
|
|
|
|
|
b by itself should be a link.
|
|
|
|
|
|
|
|
|
|
Indented once.
|
|
|
|
|
|
|
|
|
|
Indented twice.
|
|
|
|
|
|
|
|
|
|
Indented thrice.
|
|
|
|
|
|
|
|
|
|
This should [not][] be a link.
|
|
|
|
|
|
|
|
|
|
[not]: /url
|
|
|
|
|
|
|
|
|
|
Foo bar.
|
|
|
|
|
|
|
|
|
|
Foo biz.
|
|
|
|
|
|
2014-07-27 16:57:23 +02:00
|
|
|
|
|
2010-03-18 07:45:43 +01:00
|
|
|
|
With ampersands
|
|
|
|
|
|
2010-07-01 03:53:35 +02:00
|
|
|
|
Here’s a link with an ampersand in the URL.
|
2010-03-18 07:45:43 +01:00
|
|
|
|
|
2010-07-01 03:53:35 +02:00
|
|
|
|
Here’s a link with an amersand in the link text: AT&T.
|
2010-03-18 07:45:43 +01:00
|
|
|
|
|
2010-07-01 03:53:35 +02:00
|
|
|
|
Here’s an inline link.
|
2010-03-18 07:45:43 +01:00
|
|
|
|
|
2010-07-01 03:53:35 +02:00
|
|
|
|
Here’s an inline link in pointy braces.
|
2010-03-18 07:45:43 +01:00
|
|
|
|
|
2014-07-27 16:57:23 +02:00
|
|
|
|
|
2010-03-18 07:45:43 +01:00
|
|
|
|
Autolinks
|
|
|
|
|
|
|
|
|
|
With an ampersand: http://example.com/?foo=1&bar=2
|
|
|
|
|
|
|
|
|
|
- In a list?
|
|
|
|
|
- http://example.com/
|
|
|
|
|
- It should.
|
|
|
|
|
|
|
|
|
|
An e-mail address: nobody@nowhere.net
|
|
|
|
|
|
|
|
|
|
Blockquoted: http://example.com/
|
|
|
|
|
|
|
|
|
|
Auto-links should not occur here: <http://example.com/>
|
|
|
|
|
|
|
|
|
|
or here: <http://example.com/>
|
|
|
|
|
|
2014-07-27 16:57:23 +02:00
|
|
|
|
------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
2010-03-18 07:45:43 +01:00
|
|
|
|
|
2014-08-09 00:20:29 +02:00
|
|
|
|
IMAGES
|
2014-07-27 16:57:23 +02:00
|
|
|
|
|
2010-03-18 07:45:43 +01:00
|
|
|
|
|
2010-07-01 03:53:35 +02:00
|
|
|
|
From “Voyage dans la Lune” by Georges Melies (1902):
|
2010-03-18 07:45:43 +01:00
|
|
|
|
|
2010-12-13 05:09:14 +01:00
|
|
|
|
[lalune]
|
2010-03-18 07:45:43 +01:00
|
|
|
|
|
2010-12-13 05:09:14 +01:00
|
|
|
|
Here is a movie [movie] icon.
|
2010-03-18 07:45:43 +01:00
|
|
|
|
|
2014-07-27 16:57:23 +02:00
|
|
|
|
------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
2010-03-18 07:45:43 +01:00
|
|
|
|
|
2014-08-09 00:20:29 +02:00
|
|
|
|
FOOTNOTES
|
2010-03-18 07:45:43 +01:00
|
|
|
|
|
2014-07-27 16:57:23 +02:00
|
|
|
|
|
|
|
|
|
Here is a footnote reference,[1] and another.[2] This should _not_ be a
|
2010-12-13 05:09:14 +01:00
|
|
|
|
footnote reference, because it contains a space.[^my note] Here is an inline
|
2014-07-27 16:57:23 +02:00
|
|
|
|
note.[3]
|
2010-03-18 07:45:43 +01:00
|
|
|
|
|
2014-07-27 16:57:23 +02:00
|
|
|
|
Notes can go in quotes.[4]
|
2010-03-18 07:45:43 +01:00
|
|
|
|
|
2014-07-27 16:57:23 +02:00
|
|
|
|
1. And in list items.[5]
|
2010-03-18 07:45:43 +01:00
|
|
|
|
|
2010-12-13 05:09:14 +01:00
|
|
|
|
This paragraph should not be part of the note, as it is not indented.
|
2010-03-18 07:45:43 +01:00
|
|
|
|
|
2014-07-27 16:57:23 +02:00
|
|
|
|
[1] Here is the footnote. It can go anywhere after the footnote reference. It
|
|
|
|
|
need not be placed at the end of the document.
|
2010-03-18 07:45:43 +01:00
|
|
|
|
|
2014-07-27 16:57:23 +02:00
|
|
|
|
[2] Here’s the long note. This one contains multiple blocks.
|
2010-03-18 07:45:43 +01:00
|
|
|
|
|
2014-07-27 16:57:23 +02:00
|
|
|
|
Subsequent blocks are indented to show that they belong to the footnote (as
|
|
|
|
|
with list items).
|
2010-03-18 07:45:43 +01:00
|
|
|
|
|
2014-07-27 16:57:23 +02:00
|
|
|
|
{ <code> }
|
2010-03-18 07:45:43 +01:00
|
|
|
|
|
2014-07-27 16:57:23 +02:00
|
|
|
|
If you want, you can indent every line, but you can also be lazy and just
|
|
|
|
|
indent the first line of each block.
|
2010-03-18 07:45:43 +01:00
|
|
|
|
|
2014-07-27 16:57:23 +02:00
|
|
|
|
[3] This is _easier_ to type. Inline notes may contain links and ] verbatim
|
|
|
|
|
characters, as well as [bracketed text].
|
2010-03-18 07:45:43 +01:00
|
|
|
|
|
2014-07-27 16:57:23 +02:00
|
|
|
|
[4] In quote.
|
2010-03-18 07:45:43 +01:00
|
|
|
|
|
2014-07-27 16:57:23 +02:00
|
|
|
|
[5] In list.
|