More robust find_link_by_partial_text()

Make find_link_by_partial_text() be able to find links with
complex markup inside <a> tag, ignoring extra spaces and newlines
between words.

Fixes #230.