all repos — grayfriday @ 17bb7999de6cfb791d4f8986cc00b3309b370cdb

blackfriday fork with a few changes

testdata/Links, reference style.text (view raw)

 1Foo [bar] [1].
 2
 3Foo [bar][1].
 4
 5Foo [bar]
 6[1].
 7
 8[1]: /url/  "Title"
 9
10
11With [embedded [brackets]] [b].
12
13
14Indented [once][].
15
16Indented [twice][].
17
18Indented [thrice][].
19
20Indented [four][] times.
21
22 [once]: /url
23
24  [twice]: /url
25
26   [thrice]: /url
27
28    [four]: /url
29
30
31[b]: /url/
32
33* * *
34
35[this] [this] should work
36
37So should [this][this].
38
39And [this] [].
40
41And [this][].
42
43And [this].
44
45But not [that] [].
46
47Nor [that][].
48
49Nor [that].
50
51[Something in brackets like [this][] should work]
52
53[Same with [this].]
54
55In this case, [this](/somethingelse/) points to something else.
56
57Backslashing should suppress \[this] and [this\].
58
59[this]: foo
60
61
62* * *
63
64Here's one where the [link
65breaks] across lines.
66
67Here's another where the [link 
68breaks] across lines, but with a line-ending space.
69
70
71[link breaks]: /url/