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
2 files changed,
3 insertions(+),
3 deletions(-)
M
inline_test.go
→
inline_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.go
→
markdown.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++