git.iko.soy/typeable/pandoc
on 1.14.0.4 help sign in
typeable/pandoc/tests/markdown-reader-more.txt
289 lines 4.5 kB history raw
1% Title
2 spanning multiple lines
3% Author One
4 Author Two; Author Three;
5 Author Four
6
7# Additional markdown reader tests
9## Blank line before URL in link reference
11[foo] and [bar]
13[foo]:
14 /url
16[bar]:
17/url
18"title"
20## Raw ConTeXt environments
22\placeformula \startformula
23 L_{1} = L_{2}
24 \stopformula
26\start[a2]
27\start[a2]
28\stop[a2]
29\stop[a2]
31## URLs with spaces and punctuation
33[foo](/bar and baz)
34[foo](/bar
35 and baz )
36[foo]( /bar and baz )
37[foo](bar baz "title" )
39[baz][] [bam][] [bork][]
41[baz]: /foo foo
42[bam]: /foo fee
43[bork]: /foo/zee zob (title)
45[Ward's method.](http://en.wikipedia.org/wiki/Ward's_method)
47## Horizontal rules with spaces at end
49* * * * *
51-- - -- -- -
53## Raw HTML before header
55<a></a>
57### my header
59## $ in math
61$\$2 + \$3$
63$x = \text{the $n$th root of $y$}$
65This should not be math:
67$PATH 90 $PATH
69## Commented-out list item
71- one
72<!--
73- two
74-->
75- three
77## Indented code at beginning of list
79- code
80 code
82 1. code
83 code
85 12345678. code
86 code
88 - code
89 code
91 - no code
93## Backslash newline
95hi\
96there
98## Code spans
100`hi\`
102`hi
103there`
105`` hi````there ``
107`hi
109there`
111## Multilingual URLs
113<http://测.com?测=测>
115[foo](/bar/测?x=测 "title")
117<测@foo.测.baz>
119## Numbered examples
121(@) First example.
122(@foo) Second example.
124Explanation of examples (@foo) and (@bar).
126(@bar) Third example.
128## Macros
130\newcommand{\tuple}[1]{\langle #1 \rangle}
132$\tuple{x,y}$
134## Case-insensitive references
136[Fum]
138[FUM]
140[bat]
142[fum]: /fum
143[BAT]: /bat
145## Curly smart quotes
147“Hi”
149‘Hi’
151## Consecutive lists
153- one
154- two
1551. one
1562. two
158 a. one
159 b. two
161## Implicit header references
163### My header
165### My other header
167A link to [My header].
169Another link to [it][My header].
171Should be [case insensitive][my header].
173Link to [Explicit header attributes].
175[my other header]: /foo
177But this is not a link to [My other header], since the reference is defined.
179## Explicit header attributes {#foobar .baz key="val"}
181> ## Header attributes inside block quote {#foobar .baz key="val"}
183## Line blocks
185| But can a bee be said to be
186| or not to be an entire bee,
187| when half the bee is not a bee,
188| due to some ancient injury?
190| Continuation
191 line
192| and
193 another
195## Grid Tables
197+------------------+-----------+------------+
198| col 1 | col 2 | col 3 |
199+==================+===========+============+
200| r1 a | b | c |
201| r1 bis | b 2 | c 2 |
202+------------------+-----------+------------+
203| r2 d | e | f |
204+------------------+-----------+------------+
206Headless
208+------------------+-----------+------------+
209| r1 a | b | c |
210| r1 bis | b 2 | c 2 |
211+------------------+-----------+------------+
212| r2 d | e | f |
213+------------------+-----------+------------+
215Spaces at ends of lines
217+------------------+-----------+------------+
218| r1 a | b | c |
219| r1 bis | b 2 | c 2 |
220+------------------+-----------+------------+
221| r2 d | e | f |
222+------------------+-----------+------------+
224Multiple blocks in a cell
226+------------------+-----------+------------+
227| # col 1 | # col 2 | # col 3 |
228| col 1 | col 2 | col 3 |
229+------------------+-----------+------------+
230| r1 a | - b | c |
231| | - b 2 | c 2 |
232| r1 bis | - b 2 | c 2 |
233+------------------+-----------+------------+
235Empty cells
237+---+---+
238| | |
239+---+---+
241## Entities in links and titles
243[link](/&uuml;rl "&ouml;&ouml;!")
245<http://g&ouml;&ouml;gle.com>
247<me@ex&auml;mple.com>
249[foobar]
251[foobar]: /&uuml;rl "&ouml;&ouml;!"
253## Parentheses in URLs
255[link](/hi(there))
257[link](/hithere\))
259[linky]
261[linky]: hi_(there_(nested))
263## Backslashes in link references
265[\*\a](b)
267## Reference link fallbacks
269[*not a link*] [*nope*]...
271## Reference link followed by a citation
273MapReduce is a paradigm popularized by [Google] [@mapreduce] as its
274most vocal proponent.
276[Google]: http://google.com
278## Empty reference links
280[foo2]:
282bar
284[foo2]
286## Wrapping shouldn't introduce new list items
288- blah blah blah blah blah blah blah blah blah blah blah blah blah blah 2015.