all repos — grayfriday @ 7500a7e2ed7288a69834057beeec7d8bc49e6668

blackfriday fork with a few changes

Fix #180 again

The check was introduced with d28de22, when fixing #172 and #173.
Then I removed it with bcd6dd8 when fixing #180
And then it was reintroduced with 232d06c when fixing regression.

It seems that the check can be removed again. All these cases now have
tests (including the one from 69f51af, which seems to have landed to v1
only, copying it here) and they all pass.
Vytautas Ĺ altenis vytas@rtfb.lt
Sun, 12 Feb 2017 17:57:51 +0200
commit

7500a7e2ed7288a69834057beeec7d8bc49e6668

parent

ad7f7c56d58a2c7f75a14cdcaa8b8acd5dc4f141

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++