Fix a bug in link extraction

Fixed a Wikiparser bug to extract link and the test cases.