---
author:
- John MacFarlane
- Anonymous
date: July 17, 2006
title: Pandoc Test Suite
---
THIS IS A SET OF TESTS FOR PANDOC. MOST OF THEM ARE ADAPTED FROM JOHN
GRUBER'S MARKDOWN TEST SUITE.
------------------------------------------------------------------------
# HEADERS
## LEVEL 2 WITH AN [EMBEDDED LINK](/url)
### LEVEL 3 WITH *EMPHASIS*
#### LEVEL 4
##### LEVEL 5
# LEVEL 1
## LEVEL 2 WITH *EMPHASIS*
### LEVEL 3
WITH NO BLANK LINE
## LEVEL 2
WITH NO BLANK LINE
------------------------------------------------------------------------
# PARAGRAPHS
HERE'S A REGULAR PARAGRAPH.
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.
HERE'S ONE WITH A BULLET. \* CRIMINEY.
THERE SHOULD BE A HARD LINE BREAK\
HERE.
------------------------------------------------------------------------
# BLOCK QUOTES
E-MAIL STYLE:
> THIS IS A BLOCK QUOTE. IT IS PRETTY SHORT.
> CODE IN A BLOCK QUOTE:
>
> sub status {
> print "working";
> }
>
> A LIST:
>
> 1. ITEM ONE
> 2. ITEM TWO
>
> NESTED BLOCK QUOTES:
>
> > NESTED
>
> > NESTED
THIS SHOULD NOT BE A BLOCK QUOTE: 2 \> 1.
AND A FOLLOWING PARAGRAPH.
------------------------------------------------------------------------
# CODE BLOCKS
CODE:
---- (should be four hyphens)
sub status {
print "working";
}
this code block is indented by one tab
AND:
this code block is indented by two tabs
These should not be escaped: \$ \\ \> \[ \{
------------------------------------------------------------------------
# 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:
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.
ITEM 1. GRAF TWO. THE QUICK BROWN FOX JUMPED OVER THE LAZY DOG'S
BACK.
2. ITEM 2.
3. ITEM 3.
## NESTED
- TAB
- TAB
- TAB
HERE'S ANOTHER:
1. FIRST
2. SECOND:
- FEE
- FIE
- FOE
3. THIRD
SAME THING BUT WITH PARAGRAPHS:
1. FIRST
2. SECOND:
- FEE
- FIE
- FOE
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
(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
------------------------------------------------------------------------
# DEFINITION LISTS
TIGHT USING SPACES:
APPLE
: RED FRUIT
ORANGE
: ORANGE FRUIT
BANANA
: YELLOW FRUIT
TIGHT USING TABS:
APPLE
: RED FRUIT
ORANGE
: ORANGE FRUIT
BANANA
: YELLOW FRUIT
LOOSE:
APPLE
: RED FRUIT
ORANGE
: ORANGE FRUIT
BANANA
: YELLOW FRUIT
MULTIPLE BLOCKS WITH ITALICS:
*APPLE*
: RED FRUIT
CONTAINS SEEDS, CRISP, PLEASANT TO TASTE
*ORANGE*
: ORANGE FRUIT
{ orange code block }
> ORANGE BLOCK QUOTE
MULTIPLE DEFINITIONS, TIGHT:
APPLE
: RED FRUIT
: COMPUTER
ORANGE
: ORANGE FRUIT
: BANK
MULTIPLE DEFINITIONS, LOOSE:
APPLE
: RED FRUIT
: COMPUTER
ORANGE
: ORANGE FRUIT
: BANK
BLANK LINE AFTER TERM, INDENTED MARKER, ALTERNATE MARKERS:
APPLE
: RED FRUIT
: COMPUTER
ORANGE
: ORANGE FRUIT
1. SUBLIST
2. SUBLIST
# HTML BLOCKS
SIMPLE BLOCK ON ONE LINE: