I used vimdiff to compare the result files and found the difference
For test file 201, my implementation was correct because the semicolon next to the brackets should not register the line as a link
The main problem with the implement of course file is that it is not able to find out if there is something inbetween the close braket and open parenthesis. The file simply detect the open parenthesis where ever it is and take it as effective. The file should not recognize the link when there is distance between the open parenthesis and close braket.
For test file 22, it should return “/bar* “ti*tle”, so my file was correct
The problem with the code here is that it does not accept links with space in it. However, the markdown file takes whatever is inside the two parenthesis that are in the same line, so I believe the first half of the if statement should be deleted.