git.iko.soy/typeable/pandoc
on 2.0.2 help sign in
typeable/pandoc/test/markdown-reader-more.txt
320 lines 5.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## Raw LaTeX environments
33\begin{center}
34\begin{tikzpicture}[baseline={([yshift=+-.5ex]current bounding box.center)}, level distance=24pt]
35\Tree [.{S} [.NP John\index{i} ] [.VP [.V likes ] [.NP himself\index{i,*j} ]]]
36\end{tikzpicture}
37\end{center}
39## URLs with spaces and punctuation
41[foo](/bar and baz)
42[foo](/bar
43 and baz )
44[foo]( /bar and baz )
45[foo](bar baz "title" )
47[baz][] [bam][] [bork][]
49[baz]: /foo foo
50[bam]: /foo fee
51[bork]: /foo/zee zob (title)
53[Ward's method.](http://en.wikipedia.org/wiki/Ward's_method)
55## Horizontal rules with spaces at end
57* * * * *
59-- - -- -- -
61## Raw HTML before header
63<a></a>
65### my header
67## $ in math
69$\$2 + \$3$
71$x = \text{the $n$th root of $y$}$
73This should not be math:
75$PATH 90 $PATH
77## Commented-out list item
79- one
80<!--
81- two
82-->
83- three
85## Indented code at beginning of list
87- code
88 code
90 1. code
91 code
93 12345678. code
94 code
96 - code
97 code
99 - no code
101## Backslash newline
103hi\
104there
106## Code spans
108`hi\`
110`hi
111there`
113`` hi````there ``
115`hi
117there`
119## Multilingual URLs
121<http://测.com?测=测>
123[foo](/bar/测?x=测 "title")
125<测@foo.测.baz>
127## Numbered examples
129(@) First example.
130(@foo) Second example.
132Explanation of examples (@foo) and (@bar).
134(@bar) Third example.
136## Macros
138\newcommand{\tuple}[1]{\langle #1 \rangle}
140$\tuple{x,y}$
142## Case-insensitive references
144[Fum]
146[FUM]
148[bat]
150[fum]: /fum
151[BAT]: /bat
153## Curly smart quotes
155“Hi”
157‘Hi’
159## Consecutive lists
161- one
162- two
1631. one
1642. two
166 a. one
167 b. two
169## Implicit header references
171### My header
173### My other header
175A link to [My header].
177Another link to [it][My header].
179Should be [case insensitive][my header].
181Link to [Explicit header attributes].
183[my other header]: /foo
185But this is not a link to [My other header], since the reference is defined.
187## Explicit header attributes {#foobar .baz key="val"}
189> ## Header attributes inside block quote {#foobar .baz key="val"}
191## Line blocks
193| But can a bee be said to be
194| or not to be an entire bee,
195| when half the bee is not a bee,
196| due to some ancient injury?
198| Continuation
199 line
200| and
201 another
203## Grid Tables
205+------------------+-----------+------------+
206| col 1 | col 2 | col 3 |
207+==================+===========+============+
208| r1 a | b | c |
209| r1 bis | b 2 | c 2 |
210+------------------+-----------+------------+
211| r2 d | e | f |
212+------------------+-----------+------------+
214Headless
216+------------------+-----------+------------+
217| r1 a | b | c |
218| r1 bis | b 2 | c 2 |
219+------------------+-----------+------------+
220| r2 d | e | f |
221+------------------+-----------+------------+
223With alignments
225+------------------+-----------+------------+
226| col 1 | col 2 | col 3 |
227+=================:+:==========+:==========:+
228| r1 a | b | c |
229| r1 bis | b 2 | c 2 |
230+------------------+-----------+------------+
231| r2 d | e | f |
232+------------------+-----------+------------+
234Headless with alignments
236+-----------------:+:----------+:----------:+
237| r1 a | b | c |
238| r1 bis | b 2 | c 2 |
239+------------------+-----------+------------+
240| r2 d | e | f |
241+------------------+-----------+------------+
243Spaces at ends of lines
245+------------------+-----------+------------+
246| r1 a | b | c |
247| r1 bis | b 2 | c 2 |
248+------------------+-----------+------------+
249| r2 d | e | f |
250+------------------+-----------+------------+
252Multiple blocks in a cell
254+------------------+-----------+------------+
255| # col 1 | # col 2 | # col 3 |
256| col 1 | col 2 | col 3 |
257+------------------+-----------+------------+
258| r1 a | - b | c |
259| | - b 2 | c 2 |
260| r1 bis | - b 2 | c 2 |
261+------------------+-----------+------------+
263Empty cells
265+---+---+
266| | |
267+---+---+
269## Entities in links and titles
271[link](/&uuml;rl "&ouml;&ouml;!")
273<http://g&ouml;&ouml;gle.com>
275<me@ex&auml;mple.com>
277[foobar]
279[foobar]: /&uuml;rl "&ouml;&ouml;!"
281## Parentheses in URLs
283[link](/hi(there))
285[link](/hithere\))
287[linky]
289[linky]: hi_(there_(nested))
291## Backslashes in link references
293[\*\a](b)
295## Reference link fallbacks
297[*not a link*] [*nope*]...
299## Reference link followed by a citation
301MapReduce is a paradigm popularized by [Google] [@mapreduce] as its
302most vocal proponent.
304[Google]: http://google.com
306## Empty reference links
308[foo2]:
310bar
312[foo2]
314## Wrapping shouldn't introduce new list items
316- blah blah blah blah blah blah blah blah blah blah blah blah blah blah 2015.
318## Bracketed spans
320[*foo* bar baz [link](url)]{.class #id key=val}