Detect links if they are the last word in a line

fixes #168