Improve link searching on pages.

* Look at the categories at the bottom of the article.
* Fix not removing hash symbol from some links.