My group used vimdiff on the results of running a bash for loop.
Here are the actual outputs:
The link output shouldn't have been any links, so only our code was correct in its output.
In order to fix the provided MarkdownParser, we would need to fix the part where it detects an open bracket. We want it to not output any links that have a backslash in them, as a link cannot contain a backslash and people typically put backslashes in links to avoid it becoming a hyperlink. This is the area of code I would edit:
Here are the actual outputs:
The link output should have been "Foo*bar]", so both markdown parse codes were wrong in their outputs.
If we focus on fixing the provided Markdown Parser code, we can change the code to consider that there might be extra characters between the link name and the link itself. And that there might be colons or underscores in these characters. This is the area of code I would edit: