Skip to content

Latest commit

 

History

History
37 lines (21 loc) · 1.74 KB

lab-report-5-week-10.md

File metadata and controls

37 lines (21 loc) · 1.74 KB

Lab Report 5, Week 10

Note: I got a lot of command line practice doing this one, because for some mysterious reason neither Remote Explorer via VSCode nor RDP via MobaXterm were working. (I literally have never had any problems with either of these before)

Two test files where there were differences

I found the differences using vimdiff.

201.md

which can be found here

image of difference

My output on the left, the downloaded program's output on the right. Using dingus I have determined that my output (no link) is the correct one. Here's the screenshot from dingus:

dingus

The problem is that the downloaded version of MarkdownParse does not check what's in between the link text/title and the link itself. If there's stuff there, then there shouldn't be a link.

code screenshot vim

For this if statement, another condition should be added, that checks the difference between closeBracket and openParen.

489.md

which can be found here

image of difference

My output on the left, the downloaded program's output on the right. According to dingus my code in the wrong this time; there should be no link:

expected

The problem is that it's not checking whether there is a newline character in the supposed link. If there is a newline, it shouldn't be considered a link.

code screenshot2

It could be inserted into one of these if statements as a condition. (Really though, this whole part should be rewritten.)