2020-11-17 19:06:30 +01:00
|
|
|
|
#+title: Pandoc Test Suite
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2020-11-17 19:06:30 +01:00
|
|
|
|
#+author: John MacFarlane; Anonymous
|
|
|
|
|
#+date: July 17, 2006
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
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-12-04 19:19:53 +01:00
|
|
|
|
|
|
|
|
|
--------------
|
|
|
|
|
|
|
|
|
|
* Headers
|
2022-03-11 12:06:24 +01:00
|
|
|
|
:PROPERTIES:
|
|
|
|
|
:CUSTOM_ID: headers
|
|
|
|
|
:END:
|
2010-12-04 19:19:53 +01:00
|
|
|
|
** Level 2 with an [[/url][embedded link]]
|
2022-03-11 12:06:24 +01:00
|
|
|
|
:PROPERTIES:
|
|
|
|
|
:CUSTOM_ID: level-2-with-an-embedded-link
|
|
|
|
|
:END:
|
2010-12-04 19:19:53 +01:00
|
|
|
|
*** Level 3 with /emphasis/
|
2022-03-11 12:06:24 +01:00
|
|
|
|
:PROPERTIES:
|
|
|
|
|
:CUSTOM_ID: level-3-with-emphasis
|
|
|
|
|
:END:
|
2010-12-04 19:19:53 +01:00
|
|
|
|
**** Level 4
|
2022-03-11 12:06:24 +01:00
|
|
|
|
:PROPERTIES:
|
|
|
|
|
:CUSTOM_ID: level-4
|
|
|
|
|
:END:
|
2010-12-04 19:19:53 +01:00
|
|
|
|
***** Level 5
|
2022-03-11 12:06:24 +01:00
|
|
|
|
:PROPERTIES:
|
|
|
|
|
:CUSTOM_ID: level-5
|
|
|
|
|
:END:
|
2010-12-04 19:19:53 +01:00
|
|
|
|
* Level 1
|
2022-03-11 12:06:24 +01:00
|
|
|
|
:PROPERTIES:
|
|
|
|
|
:CUSTOM_ID: level-1
|
|
|
|
|
:END:
|
2010-12-04 19:19:53 +01:00
|
|
|
|
** Level 2 with /emphasis/
|
2022-03-11 12:06:24 +01:00
|
|
|
|
:PROPERTIES:
|
|
|
|
|
:CUSTOM_ID: level-2-with-emphasis
|
|
|
|
|
:END:
|
2010-12-04 19:19:53 +01:00
|
|
|
|
*** Level 3
|
2022-03-11 12:06:24 +01:00
|
|
|
|
:PROPERTIES:
|
|
|
|
|
:CUSTOM_ID: level-3
|
|
|
|
|
:END:
|
2017-11-04 19:32:47 +01:00
|
|
|
|
with no blank line
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
|
|
|
|
** Level 2
|
2022-03-11 12:06:24 +01:00
|
|
|
|
:PROPERTIES:
|
|
|
|
|
:CUSTOM_ID: level-2
|
|
|
|
|
:END:
|
2017-11-04 19:32:47 +01:00
|
|
|
|
with no blank line
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
--------------
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
|
|
|
|
* Paragraphs
|
2022-03-11 12:06:24 +01:00
|
|
|
|
:PROPERTIES:
|
|
|
|
|
:CUSTOM_ID: paragraphs
|
|
|
|
|
:END:
|
2017-11-04 19:32:47 +01:00
|
|
|
|
Here's a regular paragraph.
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +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-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
Here's one with a bullet. * criminey.
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
There should be a hard line break\\
|
|
|
|
|
here.
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
--------------
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
|
|
|
|
* Block Quotes
|
2022-03-11 12:06:24 +01:00
|
|
|
|
:PROPERTIES:
|
|
|
|
|
:CUSTOM_ID: block-quotes
|
|
|
|
|
:END:
|
2017-11-04 19:32:47 +01:00
|
|
|
|
E-mail style:
|
|
|
|
|
|
2020-11-17 19:06:30 +01:00
|
|
|
|
#+begin_quote
|
2022-03-11 12:06:24 +01:00
|
|
|
|
This is a block quote. It is pretty short.
|
|
|
|
|
|
2020-11-17 19:06:30 +01:00
|
|
|
|
#+end_quote
|
2017-11-04 19:32:47 +01:00
|
|
|
|
|
2020-11-17 19:06:30 +01:00
|
|
|
|
#+begin_quote
|
2022-03-11 12:06:24 +01:00
|
|
|
|
Code in a block quote:
|
2017-11-04 19:32:47 +01:00
|
|
|
|
|
2022-03-11 12:06:24 +01:00
|
|
|
|
#+begin_example
|
|
|
|
|
sub status {
|
|
|
|
|
print "working";
|
|
|
|
|
}
|
|
|
|
|
#+end_example
|
2017-11-04 19:32:47 +01:00
|
|
|
|
|
2022-03-11 12:06:24 +01:00
|
|
|
|
A list:
|
2017-11-04 19:32:47 +01:00
|
|
|
|
|
2022-03-11 12:06:24 +01:00
|
|
|
|
1. item one
|
|
|
|
|
2. item two
|
2017-11-04 19:32:47 +01:00
|
|
|
|
|
2022-03-11 12:06:24 +01:00
|
|
|
|
Nested block quotes:
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2022-03-11 12:06:24 +01:00
|
|
|
|
#+begin_quote
|
|
|
|
|
nested
|
|
|
|
|
|
|
|
|
|
#+end_quote
|
|
|
|
|
|
|
|
|
|
#+begin_quote
|
|
|
|
|
nested
|
|
|
|
|
|
|
|
|
|
#+end_quote
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2020-11-17 19:06:30 +01:00
|
|
|
|
#+end_quote
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
This should not be a block quote: 2 > 1.
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
And a following paragraph.
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
--------------
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
|
|
|
|
* Code Blocks
|
2022-03-11 12:06:24 +01:00
|
|
|
|
:PROPERTIES:
|
|
|
|
|
:CUSTOM_ID: code-blocks
|
|
|
|
|
:END:
|
2017-11-04 19:32:47 +01:00
|
|
|
|
Code:
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2020-11-17 19:06:30 +01:00
|
|
|
|
#+begin_example
|
2021-09-17 18:41:34 +02:00
|
|
|
|
---- (should be four hyphens)
|
2010-12-13 05:09:14 +01:00
|
|
|
|
|
2021-09-17 18:41:34 +02:00
|
|
|
|
sub status {
|
|
|
|
|
print "working";
|
|
|
|
|
}
|
2010-12-13 05:09:14 +01:00
|
|
|
|
|
2021-09-17 18:41:34 +02:00
|
|
|
|
this code block is indented by one tab
|
2020-11-17 19:06:30 +01:00
|
|
|
|
#+end_example
|
2010-12-13 05:09:14 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
And:
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2020-11-17 19:06:30 +01:00
|
|
|
|
#+begin_example
|
2021-09-17 18:41:34 +02:00
|
|
|
|
this code block is indented by two tabs
|
2010-12-13 05:09:14 +01:00
|
|
|
|
|
2021-09-17 18:41:34 +02:00
|
|
|
|
These should not be escaped: \$ \\ \> \[ \{
|
2020-11-17 19:06:30 +01:00
|
|
|
|
#+end_example
|
2010-12-13 05:09:14 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
--------------
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
|
|
|
|
* Lists
|
2022-03-11 12:06:24 +01:00
|
|
|
|
:PROPERTIES:
|
|
|
|
|
:CUSTOM_ID: lists
|
|
|
|
|
:END:
|
2010-12-04 19:19:53 +01:00
|
|
|
|
** Unordered
|
2022-03-11 12:06:24 +01:00
|
|
|
|
:PROPERTIES:
|
|
|
|
|
:CUSTOM_ID: unordered
|
|
|
|
|
:END:
|
2017-11-04 19:32:47 +01:00
|
|
|
|
Asterisks tight:
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
- asterisk 1
|
|
|
|
|
- asterisk 2
|
|
|
|
|
- asterisk 3
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
Asterisks loose:
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
- asterisk 1
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
- asterisk 2
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
- asterisk 3
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
Pluses tight:
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
- Plus 1
|
|
|
|
|
- Plus 2
|
|
|
|
|
- Plus 3
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
Pluses loose:
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
- Plus 1
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
- Plus 2
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
- Plus 3
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
Minuses tight:
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
- Minus 1
|
|
|
|
|
- Minus 2
|
|
|
|
|
- Minus 3
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
Minuses loose:
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
- Minus 1
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
- Minus 2
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
- Minus 3
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
|
|
|
|
** Ordered
|
2022-03-11 12:06:24 +01:00
|
|
|
|
:PROPERTIES:
|
|
|
|
|
:CUSTOM_ID: ordered
|
|
|
|
|
:END:
|
2017-11-04 19:32:47 +01:00
|
|
|
|
Tight:
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
1. First
|
|
|
|
|
2. Second
|
|
|
|
|
3. Third
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
and:
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
1. One
|
|
|
|
|
2. Two
|
|
|
|
|
3. Three
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
Loose using tabs:
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
1. First
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
2. Second
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
3. Third
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
and using spaces:
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
1. One
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
2. Two
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
3. Three
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
Multiple paragraphs:
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
1. Item 1, graf one.
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
Item 1. graf two. The quick brown fox jumped over the lazy dog's back.
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
2. Item 2.
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
3. Item 3.
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
|
|
|
|
** Nested
|
2022-03-11 12:06:24 +01:00
|
|
|
|
:PROPERTIES:
|
|
|
|
|
:CUSTOM_ID: nested
|
|
|
|
|
:END:
|
2017-11-04 19:32:47 +01:00
|
|
|
|
- Tab
|
|
|
|
|
- Tab
|
|
|
|
|
- Tab
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
Here's another:
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
1. First
|
|
|
|
|
2. Second:
|
|
|
|
|
- Fee
|
|
|
|
|
- Fie
|
|
|
|
|
- Foe
|
|
|
|
|
3. Third
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
Same thing but with paragraphs:
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
1. First
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
2. Second:
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
- Fee
|
|
|
|
|
- Fie
|
|
|
|
|
- Foe
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
3. Third
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
|
|
|
|
** Tabs and spaces
|
2022-03-11 12:06:24 +01:00
|
|
|
|
:PROPERTIES:
|
|
|
|
|
:CUSTOM_ID: tabs-and-spaces
|
|
|
|
|
:END:
|
2017-11-04 19:32:47 +01:00
|
|
|
|
- this is a list item indented with tabs
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
- this is a list item indented with spaces
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
- this is an example list item indented with tabs
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
- this is an example list item indented with spaces
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
|
|
|
|
** Fancy list markers
|
2022-03-11 12:06:24 +01:00
|
|
|
|
:PROPERTIES:
|
|
|
|
|
:CUSTOM_ID: fancy-list-markers
|
|
|
|
|
:END:
|
2022-01-07 02:40:53 +01:00
|
|
|
|
2) [@2] begins with 2
|
2019-02-23 23:40:06 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
3) and now 3
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
with a continuation
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2022-01-07 02:40:53 +01:00
|
|
|
|
4. [@4] sublist with roman numerals, starting with 4
|
2017-11-04 19:32:47 +01:00
|
|
|
|
5. more items
|
|
|
|
|
1) a subsublist
|
|
|
|
|
2) a subsublist
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
Nesting:
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
1. Upper Alpha
|
|
|
|
|
1. Upper Roman.
|
2022-01-07 02:40:53 +01:00
|
|
|
|
6) [@6] Decimal start with 6
|
|
|
|
|
3) [@3] Lower alpha with paren
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
Autonumbering:
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
1. Autonumber.
|
|
|
|
|
2. More.
|
|
|
|
|
1. Nested.
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
Should not be a list item:
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
M.A. 2007
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
B. Williams
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
--------------
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
|
|
|
|
* Definition Lists
|
2022-03-11 12:06:24 +01:00
|
|
|
|
:PROPERTIES:
|
|
|
|
|
:CUSTOM_ID: definition-lists
|
|
|
|
|
:END:
|
2017-11-04 19:32:47 +01:00
|
|
|
|
Tight using spaces:
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
- apple :: red fruit
|
|
|
|
|
- orange :: orange fruit
|
|
|
|
|
- banana :: yellow fruit
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
Tight using tabs:
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
- apple :: red fruit
|
|
|
|
|
- orange :: orange fruit
|
|
|
|
|
- banana :: yellow fruit
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
Loose:
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
- apple :: red fruit
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
- orange :: orange fruit
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
- banana :: yellow fruit
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
Multiple blocks with italics:
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
- /apple/ :: red fruit
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
contains seeds, crisp, pleasant to taste
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
- /orange/ :: orange fruit
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2020-11-17 19:06:30 +01:00
|
|
|
|
#+begin_example
|
2021-09-17 18:41:34 +02:00
|
|
|
|
{ orange code block }
|
2020-11-17 19:06:30 +01:00
|
|
|
|
#+end_example
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2020-11-17 19:06:30 +01:00
|
|
|
|
#+begin_quote
|
2022-03-11 12:06:24 +01:00
|
|
|
|
orange block quote
|
|
|
|
|
|
2020-11-17 19:06:30 +01:00
|
|
|
|
#+end_quote
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
Multiple definitions, tight:
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
- apple :: red fruit
|
|
|
|
|
computer
|
|
|
|
|
- orange :: orange fruit
|
|
|
|
|
bank
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
Multiple definitions, loose:
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
- apple :: red fruit
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
computer
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
- orange :: orange fruit
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
bank
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
Blank line after term, indented marker, alternate markers:
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
- apple :: red fruit
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
computer
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
- orange :: orange fruit
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
1. sublist
|
|
|
|
|
2. sublist
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
|
|
|
|
* HTML Blocks
|
2022-03-11 12:06:24 +01:00
|
|
|
|
:PROPERTIES:
|
|
|
|
|
:CUSTOM_ID: html-blocks
|
|
|
|
|
:END:
|
2017-11-04 19:32:47 +01:00
|
|
|
|
Simple block on one line:
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
foo
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
And nested without indentation:
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
foo
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
bar
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
Interpreted markdown in a table:
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2020-11-17 19:06:30 +01:00
|
|
|
|
#+begin_html
|
2017-11-04 19:32:47 +01:00
|
|
|
|
<table>
|
2020-11-17 19:06:30 +01:00
|
|
|
|
#+end_html
|
2014-07-07 23:47:51 +02:00
|
|
|
|
|
2020-11-17 19:06:30 +01:00
|
|
|
|
#+begin_html
|
2017-11-04 19:32:47 +01:00
|
|
|
|
<tr>
|
2020-11-17 19:06:30 +01:00
|
|
|
|
#+end_html
|
2014-07-07 23:47:51 +02:00
|
|
|
|
|
2020-11-17 19:06:30 +01:00
|
|
|
|
#+begin_html
|
2017-11-04 19:32:47 +01:00
|
|
|
|
<td>
|
2020-11-17 19:06:30 +01:00
|
|
|
|
#+end_html
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
This is /emphasized/
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2020-11-17 19:06:30 +01:00
|
|
|
|
#+begin_html
|
2017-11-04 19:32:47 +01:00
|
|
|
|
</td>
|
2020-11-17 19:06:30 +01:00
|
|
|
|
#+end_html
|
2014-07-07 23:47:51 +02:00
|
|
|
|
|
2020-11-17 19:06:30 +01:00
|
|
|
|
#+begin_html
|
2017-11-04 19:32:47 +01:00
|
|
|
|
<td>
|
2020-11-17 19:06:30 +01:00
|
|
|
|
#+end_html
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
And this is *strong*
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2020-11-17 19:06:30 +01:00
|
|
|
|
#+begin_html
|
2017-11-04 19:32:47 +01:00
|
|
|
|
</td>
|
2020-11-17 19:06:30 +01:00
|
|
|
|
#+end_html
|
2014-07-07 23:47:51 +02:00
|
|
|
|
|
2020-11-17 19:06:30 +01:00
|
|
|
|
#+begin_html
|
2017-11-04 19:32:47 +01:00
|
|
|
|
</tr>
|
2020-11-17 19:06:30 +01:00
|
|
|
|
#+end_html
|
2014-07-07 23:47:51 +02:00
|
|
|
|
|
2020-11-17 19:06:30 +01:00
|
|
|
|
#+begin_html
|
2017-11-04 19:32:47 +01:00
|
|
|
|
</table>
|
2020-11-17 19:06:30 +01:00
|
|
|
|
#+end_html
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2020-11-17 19:06:30 +01:00
|
|
|
|
#+begin_html
|
2017-11-04 19:32:47 +01:00
|
|
|
|
<script type="text/javascript">document.write('This *should not* be interpreted as markdown');</script>
|
2020-11-17 19:06:30 +01:00
|
|
|
|
#+end_html
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
Here's a simple block:
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
foo
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
This should be a code block, though:
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2020-11-17 19:06:30 +01:00
|
|
|
|
#+begin_example
|
2021-09-17 18:41:34 +02:00
|
|
|
|
<div>
|
|
|
|
|
foo
|
|
|
|
|
</div>
|
2020-11-17 19:06:30 +01:00
|
|
|
|
#+end_example
|
2010-12-13 05:09:14 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
As should this:
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2020-11-17 19:06:30 +01:00
|
|
|
|
#+begin_example
|
2021-09-17 18:41:34 +02:00
|
|
|
|
<div>foo</div>
|
2020-11-17 19:06:30 +01:00
|
|
|
|
#+end_example
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
Now, nested:
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
foo
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
This should just be an HTML comment:
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2020-11-17 19:06:30 +01:00
|
|
|
|
#+begin_html
|
2017-11-04 19:32:47 +01:00
|
|
|
|
<!-- Comment -->
|
2020-11-17 19:06:30 +01:00
|
|
|
|
#+end_html
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
Multiline:
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2020-11-17 19:06:30 +01:00
|
|
|
|
#+begin_html
|
2017-11-04 19:32:47 +01:00
|
|
|
|
<!--
|
|
|
|
|
Blah
|
|
|
|
|
Blah
|
|
|
|
|
-->
|
2020-11-17 19:06:30 +01:00
|
|
|
|
#+end_html
|
2010-12-13 05:09:14 +01:00
|
|
|
|
|
2020-11-17 19:06:30 +01:00
|
|
|
|
#+begin_html
|
2017-11-04 19:32:47 +01:00
|
|
|
|
<!--
|
|
|
|
|
This is another comment.
|
|
|
|
|
-->
|
2020-11-17 19:06:30 +01:00
|
|
|
|
#+end_html
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
Code block:
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2020-11-17 19:06:30 +01:00
|
|
|
|
#+begin_example
|
2021-09-17 18:41:34 +02:00
|
|
|
|
<!-- Comment -->
|
2020-11-17 19:06:30 +01:00
|
|
|
|
#+end_example
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
Just plain comment, with trailing spaces on the line:
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2020-11-17 19:06:30 +01:00
|
|
|
|
#+begin_html
|
2017-11-04 19:32:47 +01:00
|
|
|
|
<!-- foo -->
|
2020-11-17 19:06:30 +01:00
|
|
|
|
#+end_html
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
Code:
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2020-11-17 19:06:30 +01:00
|
|
|
|
#+begin_example
|
2021-09-17 18:41:34 +02:00
|
|
|
|
<hr />
|
2020-11-17 19:06:30 +01:00
|
|
|
|
#+end_example
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
Hr's:
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2020-11-17 19:06:30 +01:00
|
|
|
|
#+begin_html
|
2017-11-04 19:32:47 +01:00
|
|
|
|
<hr>
|
2020-11-17 19:06:30 +01:00
|
|
|
|
#+end_html
|
2010-12-13 05:09:14 +01:00
|
|
|
|
|
2020-11-17 19:06:30 +01:00
|
|
|
|
#+begin_html
|
2017-11-04 19:32:47 +01:00
|
|
|
|
<hr />
|
2020-11-17 19:06:30 +01:00
|
|
|
|
#+end_html
|
2010-12-13 05:09:14 +01:00
|
|
|
|
|
2020-11-17 19:06:30 +01:00
|
|
|
|
#+begin_html
|
2017-11-04 19:32:47 +01:00
|
|
|
|
<hr />
|
2020-11-17 19:06:30 +01:00
|
|
|
|
#+end_html
|
2010-12-13 05:09:14 +01:00
|
|
|
|
|
2020-11-17 19:06:30 +01:00
|
|
|
|
#+begin_html
|
2017-11-04 19:32:47 +01:00
|
|
|
|
<hr>
|
2020-11-17 19:06:30 +01:00
|
|
|
|
#+end_html
|
2010-12-13 05:09:14 +01:00
|
|
|
|
|
2020-11-17 19:06:30 +01:00
|
|
|
|
#+begin_html
|
2017-11-04 19:32:47 +01:00
|
|
|
|
<hr />
|
2020-11-17 19:06:30 +01:00
|
|
|
|
#+end_html
|
2010-12-13 05:09:14 +01:00
|
|
|
|
|
2020-11-17 19:06:30 +01:00
|
|
|
|
#+begin_html
|
2017-11-04 19:32:47 +01:00
|
|
|
|
<hr />
|
2020-11-17 19:06:30 +01:00
|
|
|
|
#+end_html
|
2010-12-13 05:09:14 +01:00
|
|
|
|
|
2020-11-17 19:06:30 +01:00
|
|
|
|
#+begin_html
|
2017-11-04 19:32:47 +01:00
|
|
|
|
<hr class="foo" id="bar" />
|
2020-11-17 19:06:30 +01:00
|
|
|
|
#+end_html
|
2010-12-13 05:09:14 +01:00
|
|
|
|
|
2020-11-17 19:06:30 +01:00
|
|
|
|
#+begin_html
|
2017-11-04 19:32:47 +01:00
|
|
|
|
<hr class="foo" id="bar" />
|
2020-11-17 19:06:30 +01:00
|
|
|
|
#+end_html
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2020-11-17 19:06:30 +01:00
|
|
|
|
#+begin_html
|
2017-11-04 19:32:47 +01:00
|
|
|
|
<hr class="foo" id="bar">
|
2020-11-17 19:06:30 +01:00
|
|
|
|
#+end_html
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
--------------
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
|
|
|
|
* Inline Markup
|
2022-03-11 12:06:24 +01:00
|
|
|
|
:PROPERTIES:
|
|
|
|
|
:CUSTOM_ID: inline-markup
|
|
|
|
|
:END:
|
2017-11-04 19:32:47 +01:00
|
|
|
|
This is /emphasized/, and so /is this/.
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
This is *strong*, and so *is this*.
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
An /[[/url][emphasized link]]/.
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
*/This is strong and em./*
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
So is */this/* word.
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
*/This is strong and em./*
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
So is */this/* word.
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
This is code: =>=, =$=, =\=, =\$=, =<html>=.
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
+This is /strikeout/.+
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
Superscripts: a^{bc}d a^{/hello/} a^{hello there}.
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
Subscripts: H_{2}O, H_{23}O, H_{many of them}O.
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2021-09-19 21:09:51 +02:00
|
|
|
|
These should not be superscripts or subscripts, because of the unescaped spaces:
|
|
|
|
|
a^b c^d, a~b c~d.
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
--------------
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
|
|
|
|
* Smart quotes, ellipses, dashes
|
2022-03-11 12:06:24 +01:00
|
|
|
|
:PROPERTIES:
|
|
|
|
|
:CUSTOM_ID: smart-quotes-ellipses-dashes
|
|
|
|
|
:END:
|
2017-11-04 19:32:47 +01:00
|
|
|
|
"Hello," said the spider. "'Shelob' is my name."
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
'A', 'B', and 'C' are letters.
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
'Oak,' 'elm,' and 'beech' are names of trees. So is 'pine.'
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
'He said, "I want to go."' Were you alive in the 70's?
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
Here is some quoted '=code=' and a "[[http://example.com/?foo=1&bar=2][quoted
|
|
|
|
|
link]]".
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
Some dashes: one---two --- three---four --- five.
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
Dashes between numbers: 5--7, 255--66, 1987--1999.
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
Ellipses...and...and....
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
--------------
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
|
|
|
|
* LaTeX
|
2022-03-11 12:06:24 +01:00
|
|
|
|
:PROPERTIES:
|
|
|
|
|
:CUSTOM_ID: latex
|
|
|
|
|
:END:
|
2017-11-04 19:32:47 +01:00
|
|
|
|
- \cite[22-23]{smith.1899}
|
2021-04-01 23:36:02 +02:00
|
|
|
|
- \(2+2=4\)
|
|
|
|
|
- \(x \in y\)
|
|
|
|
|
- \(\alpha \wedge \omega\)
|
|
|
|
|
- \(223\)
|
|
|
|
|
- \(p\)-Tree
|
2017-11-04 19:32:47 +01:00
|
|
|
|
- Here's some display math:
|
2021-04-01 23:36:02 +02:00
|
|
|
|
\[\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}\]
|
|
|
|
|
- Here's one that has a line break in it: \(\alpha + \omega \times x^2\).
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
These shouldn't be math:
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +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$.
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
Here's a LaTeX table:
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
\begin{tabular}{|l|l|}\hline
|
|
|
|
|
Animal & Number \\ \hline
|
|
|
|
|
Dog & 2 \\
|
|
|
|
|
Cat & 1 \\ \hline
|
|
|
|
|
\end{tabular}
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
--------------
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
|
|
|
|
* Special Characters
|
2022-03-11 12:06:24 +01:00
|
|
|
|
:PROPERTIES:
|
|
|
|
|
:CUSTOM_ID: special-characters
|
|
|
|
|
:END:
|
2017-11-04 19:32:47 +01:00
|
|
|
|
Here is some unicode:
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
- I hat: Î
|
|
|
|
|
- o umlaut: ö
|
|
|
|
|
- section: §
|
|
|
|
|
- set membership: ∈
|
|
|
|
|
- copyright: ©
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
AT&T has an ampersand in their name.
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
AT&T is another way to write it.
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
This & that.
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
4 < 5.
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
6 > 5.
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
Backslash: \
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
Backtick: `
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
Asterisk: *
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2018-09-09 22:11:53 +02:00
|
|
|
|
Underscore: _
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
Left brace: {
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
Right brace: }
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
Left bracket: [
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
Right bracket: ]
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
Left paren: (
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
Right paren: )
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
Greater-than: >
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
Hash: #
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
Period: .
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
Bang: !
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
Plus: +
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
Minus: -
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
--------------
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
|
|
|
|
* Links
|
2022-03-11 12:06:24 +01:00
|
|
|
|
:PROPERTIES:
|
|
|
|
|
:CUSTOM_ID: links
|
|
|
|
|
:END:
|
2010-12-04 19:19:53 +01:00
|
|
|
|
** Explicit
|
2022-03-11 12:06:24 +01:00
|
|
|
|
:PROPERTIES:
|
|
|
|
|
:CUSTOM_ID: explicit
|
|
|
|
|
:END:
|
2017-11-04 19:32:47 +01:00
|
|
|
|
Just a [[/url/][URL]].
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
[[/url/][URL and title]].
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
[[/url/][URL and title]].
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
[[/url/][URL and title]].
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
[[/url/][URL and title]]
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
[[/url/][URL and title]]
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2018-09-09 22:11:53 +02:00
|
|
|
|
[[/url/with_underscore][with_underscore]]
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
[[mailto:nobody@nowhere.net][Email link]]
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
[[][Empty]].
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
|
|
|
|
** Reference
|
2022-03-11 12:06:24 +01:00
|
|
|
|
:PROPERTIES:
|
|
|
|
|
:CUSTOM_ID: reference
|
|
|
|
|
:END:
|
2017-11-04 19:32:47 +01:00
|
|
|
|
Foo [[/url/][bar]].
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
With [[/url/][embedded [brackets]]].
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
[[/url/][b]] by itself should be a link.
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
Indented [[/url][once]].
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
Indented [[/url][twice]].
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
Indented [[/url][thrice]].
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
This should [not][] be a link.
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2020-11-17 19:06:30 +01:00
|
|
|
|
#+begin_example
|
2021-09-17 18:41:34 +02:00
|
|
|
|
[not]: /url
|
2020-11-17 19:06:30 +01:00
|
|
|
|
#+end_example
|
2010-12-13 05:09:14 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
Foo [[/url/][bar]].
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
Foo [[/url/][biz]].
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
|
|
|
|
** With ampersands
|
2022-03-11 12:06:24 +01:00
|
|
|
|
:PROPERTIES:
|
|
|
|
|
:CUSTOM_ID: with-ampersands
|
|
|
|
|
:END:
|
2021-09-19 21:09:51 +02:00
|
|
|
|
Here's a [[http://example.com/?foo=1&bar=2][link with an ampersand in the URL]].
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
Here's a link with an amersand in the link text: [[http://att.com/][AT&T]].
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
Here's an [[/script?foo=1&bar=2][inline link]].
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
Here's an [[/script?foo=1&bar=2][inline link in pointy braces]].
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
|
|
|
|
** Autolinks
|
2022-03-11 12:06:24 +01:00
|
|
|
|
:PROPERTIES:
|
|
|
|
|
:CUSTOM_ID: autolinks
|
|
|
|
|
:END:
|
2017-11-04 19:32:47 +01:00
|
|
|
|
With an ampersand: [[http://example.com/?foo=1&bar=2]]
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
- In a list?
|
|
|
|
|
- [[http://example.com/]]
|
|
|
|
|
- It should.
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
An e-mail address: [[mailto:nobody@nowhere.net][nobody@nowhere.net]]
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2020-11-17 19:06:30 +01:00
|
|
|
|
#+begin_quote
|
2022-03-11 12:06:24 +01:00
|
|
|
|
Blockquoted: [[http://example.com/]]
|
|
|
|
|
|
2020-11-17 19:06:30 +01:00
|
|
|
|
#+end_quote
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
Auto-links should not occur here: =<http://example.com/>=
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2020-11-17 19:06:30 +01:00
|
|
|
|
#+begin_example
|
2021-09-17 18:41:34 +02:00
|
|
|
|
or here: <http://example.com/>
|
2020-11-17 19:06:30 +01:00
|
|
|
|
#+end_example
|
2010-12-13 05:09:14 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
--------------
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
|
|
|
|
* Images
|
2022-03-11 12:06:24 +01:00
|
|
|
|
:PROPERTIES:
|
|
|
|
|
:CUSTOM_ID: images
|
|
|
|
|
:END:
|
2017-11-04 19:32:47 +01:00
|
|
|
|
From "Voyage dans la Lune" by Georges Melies (1902):
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2020-11-17 19:06:30 +01:00
|
|
|
|
#+caption: lalune
|
2017-11-04 19:32:47 +01:00
|
|
|
|
[[file:lalune.jpg]]
|
2016-08-18 14:32:59 +02:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
Here is a movie [[file:movie.jpg]] icon.
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
--------------
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
|
|
|
|
* Footnotes
|
2022-03-11 12:06:24 +01:00
|
|
|
|
:PROPERTIES:
|
|
|
|
|
:CUSTOM_ID: footnotes
|
|
|
|
|
:END:
|
2017-11-04 19:32:47 +01:00
|
|
|
|
Here is a footnote reference,[fn:1] and another.[fn:2] This should /not/ be a
|
2018-09-09 22:11:53 +02:00
|
|
|
|
footnote reference, because it contains a space.[^my note] Here is an inline
|
2017-11-04 19:32:47 +01:00
|
|
|
|
note.[fn:3]
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2020-11-17 19:06:30 +01:00
|
|
|
|
#+begin_quote
|
2022-03-11 12:06:24 +01:00
|
|
|
|
Notes can go in quotes.[fn:4]
|
|
|
|
|
|
2020-11-17 19:06:30 +01:00
|
|
|
|
#+end_quote
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
1. And in list items.[fn:5]
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2017-11-04 19:32:47 +01:00
|
|
|
|
This paragraph should not be part of the note, as it is not indented.
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2021-09-19 21:09:51 +02:00
|
|
|
|
[fn: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-12-04 19:19:53 +01:00
|
|
|
|
|
2016-12-21 23:43:05 +01:00
|
|
|
|
[fn:2] Here's the long note. This one contains multiple blocks.
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2016-12-21 23:43:05 +01:00
|
|
|
|
Subsequent blocks are indented to show that they belong to the footnote
|
|
|
|
|
(as with list items).
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2020-11-17 19:06:30 +01:00
|
|
|
|
#+begin_example
|
2021-09-17 18:41:34 +02:00
|
|
|
|
{ <code> }
|
2020-11-17 19:06:30 +01:00
|
|
|
|
#+end_example
|
2010-12-13 05:09:14 +01:00
|
|
|
|
|
2021-09-19 21:09:51 +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-12-04 19:19:53 +01:00
|
|
|
|
|
2016-12-21 23:43:05 +01:00
|
|
|
|
[fn:3] This is /easier/ to type. Inline notes may contain
|
|
|
|
|
[[http://google.com][links]] and =]= verbatim characters, as well as
|
|
|
|
|
[bracketed text].
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2016-12-21 23:43:05 +01:00
|
|
|
|
[fn:4] In quote.
|
2010-12-04 19:19:53 +01:00
|
|
|
|
|
2016-12-21 23:43:05 +01:00
|
|
|
|
[fn:5] In list.
|