aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <fiddlosopher@gmail.com>2011-11-24 11:14:45 -0800
committerJohn MacFarlane <fiddlosopher@gmail.com>2011-11-24 11:14:45 -0800
commit4d5ddbce8b2525b1e6cf0a4fe8506f9c75152473 (patch)
tree50ec9fae4b17322247b8848bb378065021041006
parentce40d0d0c2a69e6e8fc000099255bf73698c33bb (diff)
downloadpandoc-4d5ddbce8b2525b1e6cf0a4fe8506f9c75152473.tar.gz
Mardkown writer tests: Use setext headers for levels 1-2.
-rw-r--r--tests/lhs-test.markdown3
-rw-r--r--tests/markdown-citations.chicago-author-date.txt6
-rw-r--r--tests/markdown-citations.ieee.txt6
-rw-r--r--tests/markdown-citations.mhra.txt6
-rw-r--r--tests/markdown-citations.txt6
-rw-r--r--tests/writer.markdown81
6 files changed, 72 insertions, 36 deletions
diff --git a/tests/lhs-test.markdown b/tests/lhs-test.markdown
index 1d6cfcfb7..261021bb7 100644
--- a/tests/lhs-test.markdown
+++ b/tests/lhs-test.markdown
@@ -1,4 +1,5 @@
-# lhs test
+lhs test
+========
`unsplit` is an arrow that takes a pair of values and combines them to return
a single value:
diff --git a/tests/markdown-citations.chicago-author-date.txt b/tests/markdown-citations.chicago-author-date.txt
index 07539faf4..f9bc6894d 100644
--- a/tests/markdown-citations.chicago-author-date.txt
+++ b/tests/markdown-citations.chicago-author-date.txt
@@ -1,4 +1,5 @@
-# Pandoc with citeproc-hs
+Pandoc with citeproc-hs
+=======================
- [@nonexistent]
@@ -28,7 +29,8 @@
- With some markup (*see* Doe 2005, 32).
-# References
+References
+==========
Doe, John. 2005. *First Book*. Cambridge: Cambridge University Press.
diff --git a/tests/markdown-citations.ieee.txt b/tests/markdown-citations.ieee.txt
index 36b944011..69da9efbf 100644
--- a/tests/markdown-citations.ieee.txt
+++ b/tests/markdown-citations.ieee.txt
@@ -1,4 +1,5 @@
-# Pandoc with citeproc-hs
+Pandoc with citeproc-hs
+=======================
- [@nonexistent]
@@ -28,7 +29,8 @@
- With some markup [1].
-# References
+References
+==========
[1] J. Doe, *First Book*, Cambridge: Cambridge University Press, 2005.
diff --git a/tests/markdown-citations.mhra.txt b/tests/markdown-citations.mhra.txt
index ed3f1c850..370f906eb 100644
--- a/tests/markdown-citations.mhra.txt
+++ b/tests/markdown-citations.mhra.txt
@@ -1,4 +1,5 @@
-# Pandoc with citeproc-hs
+Pandoc with citeproc-hs
+=======================
- [@nonexistent]
@@ -28,7 +29,8 @@
- With some markup.[^12]
-# References
+References
+==========
Doe, John, ‘Article’, *Journal of Generic Studies*, 6 (2006), 33-34.
diff --git a/tests/markdown-citations.txt b/tests/markdown-citations.txt
index e2864d365..5b730e33b 100644
--- a/tests/markdown-citations.txt
+++ b/tests/markdown-citations.txt
@@ -1,4 +1,5 @@
-# Pandoc with citeproc-hs
+Pandoc with citeproc-hs
+=======================
- [@nonexistent]
@@ -28,7 +29,8 @@
- With some markup [*see* @item1 p. **32**].
-# References
+References
+==========
[^1]: A citation without locators [@item3].
diff --git a/tests/writer.markdown b/tests/writer.markdown
index cc56b8b3a..364954e00 100644
--- a/tests/writer.markdown
+++ b/tests/writer.markdown
@@ -7,9 +7,11 @@ markdown test suite.
* * * * *
-# Headers
+Headers
+=======
-## Level 2 with an [embedded link](/url)
+Level 2 with an [embedded link](/url)
+-------------------------------------
### Level 3 with *emphasis*
@@ -17,21 +19,25 @@ markdown test suite.
##### Level 5
-# Level 1
+Level 1
+=======
-## Level 2 with *emphasis*
+Level 2 with *emphasis*
+-----------------------
### Level 3
with no blank line
-## Level 2
+Level 2
+-------
with no blank line
* * * * *
-# Paragraphs
+Paragraphs
+==========
Here’s a regular paragraph.
@@ -46,7 +52,8 @@ here.
* * * * *
-# Block Quotes
+Block Quotes
+============
E-mail style:
@@ -75,7 +82,8 @@ And a following paragraph.
* * * * *
-# Code Blocks
+Code Blocks
+===========
Code:
@@ -95,9 +103,11 @@ And:
* * * * *
-# Lists
+Lists
+=====
-## Unordered
+Unordered
+---------
Asterisks tight:
@@ -141,7 +151,8 @@ Minuses loose:
- Minus 3
-## Ordered
+Ordered
+-------
Tight:
@@ -181,7 +192,8 @@ Multiple paragraphs:
3. Item 3.
-## Nested
+Nested
+------
- Tab
- Tab
@@ -209,7 +221,8 @@ Same thing but with paragraphs:
3. Third
-## Tabs and spaces
+Tabs and spaces
+---------------
- this is a list item indented with tabs
@@ -219,7 +232,8 @@ Same thing but with paragraphs:
- this is an example list item indented with spaces
-## Fancy list markers
+Fancy list markers
+------------------
(2) begins with 2
(3) and now 3
@@ -252,7 +266,8 @@ B. Williams
* * * * *
-# Definition Lists
+Definition Lists
+================
Tight using spaces:
@@ -331,7 +346,8 @@ orange
1. sublist
2. sublist
-# HTML Blocks
+HTML Blocks
+===========
Simple block on one line:
@@ -444,7 +460,8 @@ Hr’s:
* * * * *
-# Inline Markup
+Inline Markup
+=============
This is *emphasized*, and so *is this*.
@@ -473,7 +490,8 @@ spaces: a\^b c\^d, a\~b c\~d.
* * * * *
-# Smart quotes, ellipses, dashes
+Smart quotes, ellipses, dashes
+==============================
“Hello,” said the spider. “‘Shelob’ is my name.”
@@ -494,7 +512,8 @@ Ellipses…and…and….
* * * * *
-# LaTeX
+LaTeX
+=====
- \cite[22-23]{smith.1899}
- $2+2=4$
@@ -524,7 +543,8 @@ Cat & 1 \\ \hline
* * * * *
-# Special Characters
+Special Characters
+==================
Here is some unicode:
@@ -578,9 +598,11 @@ Minus: -
* * * * *
-# Links
+Links
+=====
-## Explicit
+Explicit
+--------
Just a [URL](/url/).
@@ -600,7 +622,8 @@ Just a [URL](/url/).
[Empty]().
-## Reference
+Reference
+---------
Foo [bar](/url/).
@@ -626,7 +649,8 @@ Foo [bar](/url/ "Title with "quotes" inside").
Foo [biz](/url/ "Title with "quote" inside").
-## With ampersands
+With ampersands
+---------------
Here’s a [link with an ampersand in the URL](http://example.com/?foo=1&bar=2).
@@ -637,7 +661,8 @@ Here’s an [inline link](/script?foo=1&bar=2).
Here’s an [inline link in pointy braces](/script?foo=1&bar=2).
-## Autolinks
+Autolinks
+---------
With an ampersand: <http://example.com/?foo=1&bar=2>
@@ -655,7 +680,8 @@ Auto-links should not occur here: `<http://example.com/>`
* * * * *
-# Images
+Images
+======
From “Voyage dans la Lune” by Georges Melies (1902):
@@ -665,7 +691,8 @@ Here is a movie ![movie](movie.jpg) icon.
* * * * *
-# Footnotes
+Footnotes
+=========
Here is a footnote reference,[^1] and another.[^2] This should *not* be a
footnote reference, because it contains a space.[\^my note] Here is an inline