all repos — grayfriday @ 5ebfae50aacdef0dacd1a1acc469c2c1c7a7d4d8

blackfriday fork with a few changes

Merge pull request #331 from russross/v2-fix-180-again

Fix #180 again
Vytautas Ĺ altenis vytas@rtfb.lt
Tue, 14 Feb 2017 21:40:27 +0200
commit

5ebfae50aacdef0dacd1a1acc469c2c1c7a7d4d8

parent

b98e30685370e0b7a5556c084dc4aa7ca6f59136

2 files changed, 3 insertions(+), 3 deletions(-)

jump to
M inline_test.goinline_test.go

@@ -604,6 +604,9 @@ "<p><a href=\"/url/\" title=\"title\">ref</a></p>\n",

"[ref]\n [ref]: ../url/ \"title\"\n", "<p><a href=\"../url/\" title=\"title\">ref</a></p>\n", + + "[link][ref]\n [ref]: /url/", + "<p><a href=\"/url/\">link</a></p>\n", } doLinkTestsInline(t, tests) }
M markdown.gomarkdown.go

@@ -639,9 +639,6 @@ linkOffset = i

for i < len(data) && data[i] != ' ' && data[i] != '\t' && data[i] != '\n' && data[i] != '\r' { i++ } - if i == len(data) { - return - } linkEnd = i if data[linkOffset] == '<' && data[linkEnd-1] == '>' { linkOffset++