all repos — grayfriday @ 16c09b01bd4fba32c47d078a1fce3096c2e4b59c

blackfriday fork with a few changes

make autolink peforms like GFM
athom athom@126.com
Fri, 09 Aug 2013 16:28:35 +0800
commit

16c09b01bd4fba32c47d078a1fce3096c2e4b59c

parent

8751c35d1a63b40e58fd9ed9eb32f04e9036a205

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M inline.goinline.go

@@ -620,7 +620,7 @@ }

// scan backward for a word boundary rewind := 0 - for offset-rewind > 0 && rewind <= 7 && !isspace(data[offset-rewind-1]) && !isspace(data[offset-rewind-1]) { + for offset-rewind > 0 && rewind <= 7 && isalnum(data[offset-rewind-1]) { rewind++ } if rewind > 6 { // longest supported protocol is "mailto" which has 6 letters