git.iko.soy/typeable/pandoc
on master help sign in
Mardkown writer tests: Use setext headers for levels 1-2.
commit4d5ddbce8b2525b1e6cf0a4fe8506f9c75152473 authorJohn MacFarlane <fiddlosopher@gmail.com> dateThu 24 Nov 2011, 11:14 (15 years ago) parentce40d0d
6 files changed+72−36
tests/lhs-test.markdown+2−1 tests/markdown-citations.chicago-author-date.txt+4−2 tests/markdown-citations.ieee.txt+4−2 tests/markdown-citations.mhra.txt+4−2 tests/markdown-citations.txt+4−2 tests/writer.markdown+54−27
tests/lhs-test.markdown+2−1
@@ -1,4 +1,5 @@
1−# lhs test
1+lhs test
2+========
23
34`unsplit` is an arrow that takes a pair of values and combines them to return
45a single value:
tests/markdown-citations.chicago-author-date.txt+4−2
@@ -1,4 +1,5 @@
1−# Pandoc with citeproc-hs
1+Pandoc with citeproc-hs
2+=======================
23
34- [@nonexistent]
45
@@ -28,7 +29,8 @@
2829
2930- With some markup (*see* Doe 2005, 32).
3031
31−# References
32+References
33+==========
3234
3335Doe, John. 2005. *First Book*. Cambridge: Cambridge University Press.
3436
tests/markdown-citations.ieee.txt+4−2
@@ -1,4 +1,5 @@
1−# Pandoc with citeproc-hs
1+Pandoc with citeproc-hs
2+=======================
23
34- [@nonexistent]
45
@@ -28,7 +29,8 @@
2829
2930- With some markup [1].
3031
31−# References
32+References
33+==========
3234
3335[1] J. Doe, *First Book*, Cambridge: Cambridge University Press, 2005.
3436
tests/markdown-citations.mhra.txt+4−2
@@ -1,4 +1,5 @@
1−# Pandoc with citeproc-hs
1+Pandoc with citeproc-hs
2+=======================
23
34- [@nonexistent]
45
@@ -28,7 +29,8 @@
2829
2930- With some markup.[^12]
3031
31−# References
32+References
33+==========
3234
3335Doe, John, ‘Article’, *Journal of Generic Studies*, 6 (2006), 33-34.
3436
tests/markdown-citations.txt+4−2
@@ -1,4 +1,5 @@
1−# Pandoc with citeproc-hs
1+Pandoc with citeproc-hs
2+=======================
23
34- [@nonexistent]
45
@@ -28,7 +29,8 @@
2829
2930- With some markup [*see* @item1 p. **32**].
3031
31−# References
32+References
33+==========
3234
3335[^1]: A citation without locators [@item3].
3436
tests/writer.markdown+54−27
@@ -7,9 +7,11 @@ markdown test suite.
77
88* * * * *
99
10−# Headers
10+Headers
11+=======
1112
12−## Level 2 with an [embedded link](/url)
13+Level 2 with an [embedded link](/url)
14+-------------------------------------
1315
1416### Level 3 with *emphasis*
1517
@@ -17,21 +19,25 @@ markdown test suite.
1719
1820##### Level 5
1921
20−# Level 1
22+Level 1
23+=======
2124
22−## Level 2 with *emphasis*
25+Level 2 with *emphasis*
26+-----------------------
2327
2428### Level 3
2529
2630with no blank line
2731
28−## Level 2
32+Level 2
33+-------
2934
3035with no blank line
3136
3237* * * * *
3338
34−# Paragraphs
39+Paragraphs
40+==========
3541
3642Here’s a regular paragraph.
3743
@@ -46,7 +52,8 @@ here.
4652
4753* * * * *
4854
49−# Block Quotes
55+Block Quotes
56+============
5057
5158E-mail style:
5259
@@ -75,7 +82,8 @@ And a following paragraph.
7582
7683* * * * *
7784
78−# Code Blocks
85+Code Blocks
86+===========
7987
8088Code:
8189
@@ -95,9 +103,11 @@ And:
95103
96104* * * * *
97105
98−# Lists
106+Lists
107+=====
99108
100−## Unordered
109+Unordered
110+---------
101111
102112Asterisks tight:
103113
@@ -141,7 +151,8 @@ Minuses loose:
141151
142152- Minus 3
143153
144−## Ordered
154+Ordered
155+-------
145156
146157Tight:
147158
@@ -181,7 +192,8 @@ Multiple paragraphs:
181192
1821933. Item 3.
183194
184−## Nested
195+Nested
196+------
185197
186198- Tab
187199 - Tab
@@ -209,7 +221,8 @@ Same thing but with paragraphs:
209221
2102223. Third
211223
212−## Tabs and spaces
224+Tabs and spaces
225+---------------
213226
214227- this is a list item indented with tabs
215228
@@ -219,7 +232,8 @@ Same thing but with paragraphs:
219232
220233 - this is an example list item indented with spaces
221234
222−## Fancy list markers
235+Fancy list markers
236+------------------
223237
224238(2) begins with 2
225239(3) and now 3
@@ -252,7 +266,8 @@ B. Williams
252266
253267* * * * *
254268
255−# Definition Lists
269+Definition Lists
270+================
256271
257272Tight using spaces:
258273
@@ -331,7 +346,8 @@ orange
331346 1. sublist
332347 2. sublist
333348
334−# HTML Blocks
349+HTML Blocks
350+===========
335351
336352Simple block on one line:
337353
@@ -444,7 +460,8 @@ Hr’s:
444460
445461* * * * *
446462
447−# Inline Markup
463+Inline Markup
464+=============
448465
449466This is *emphasized*, and so *is this*.
450467
@@ -473,7 +490,8 @@ spaces: a\^b c\^d, a\~b c\~d.
473490
474491* * * * *
475492
476−# Smart quotes, ellipses, dashes
493+Smart quotes, ellipses, dashes
494+==============================
477495
478496“Hello,” said the spider. “‘Shelob’ is my name.”
479497
@@ -494,7 +512,8 @@ Ellipses…and…and….
494512
495513* * * * *
496514
497−# LaTeX
515+LaTeX
516+=====
498517
499518- \cite[22-23]{smith.1899}
500519- $2+2=4$
@@ -524,7 +543,8 @@ Cat & 1 \\ \hline
524543
525544* * * * *
526545
527−# Special Characters
546+Special Characters
547+==================
528548
529549Here is some unicode:
530550
@@ -578,9 +598,11 @@ Minus: -
578598
579599* * * * *
580600
581−# Links
601+Links
602+=====
582603
583−## Explicit
604+Explicit
605+--------
584606
585607Just a [URL](/url/).
586608
@@ -600,7 +622,8 @@ Just a [URL](/url/).
600622
601623[Empty]().
602624
603−## Reference
625+Reference
626+---------
604627
605628Foo [bar](/url/).
606629
@@ -626,7 +649,8 @@ Foo [bar](/url/ "Title with "quotes" inside").
626649
627650Foo [biz](/url/ "Title with "quote" inside").
628651
629−## With ampersands
652+With ampersands
653+---------------
630654
631655Here’s a [link with an ampersand in the URL](http://example.com/?foo=1&bar=2).
632656
@@ -637,7 +661,8 @@ Here’s an [inline link](/script?foo=1&bar=2).
637661
638662Here’s an [inline link in pointy braces](/script?foo=1&bar=2).
639663
640−## Autolinks
664+Autolinks
665+---------
641666
642667With an ampersand: <http://example.com/?foo=1&bar=2>
643668
@@ -655,7 +680,8 @@ Auto-links should not occur here: `<http://example.com/>`
655680
656681* * * * *
657682
658−# Images
683+Images
684+======
659685
660686From “Voyage dans la Lune” by Georges Melies (1902):
661687
@@ -665,7 +691,8 @@ Here is a movie ![movie](movie.jpg) icon.
665691
666692* * * * *
667693
668−# Footnotes
694+Footnotes
695+=========
669696
670697Here is a footnote reference,[^1] and another.[^2] This should *not* be a
671698footnote reference, because it contains a space.[\^my note] Here is an inline