[#1984] exclude trailing ,.; in external link
[#1984] Add test and improve readability.
Merge pull request #1990 from ckan/1985-autolink-punctuation

1985 autolink punctuation