thank you for a great plugin. I do see one issue that could use improvement: when the last line is a hyperlink, don't add s to the tag, or any tag, for that matter.
the returned source code looks like this:
<a href="mailto:email@domain.com">email@domain.com</a>
which then doesn't quite work anymore.
cheers