Skip to content

Latest commit

 

History

History
32 lines (25 loc) · 1.45 KB

lab-report-5.md

File metadata and controls

32 lines (25 loc) · 1.45 KB

VimDiff for Links

I used vimdiff on the results of running a bash for loop

Link to files with different results :

File499 File503

File 499

Both implementations reads File 499's link incorrectly. This is because we need to ignore characters preceeded by backslash. Our outputs : Left is my MarkdownParse and right is by the LAB 9's given repository Image1 Correct output should be : foo):

Image2

File 503

My implementation does not read the character # and hence misses the link. The given MarkdownParse.java does read the link but does not convert " to its hexadecimal ASCII code.

Image3 The correct ouput should be : %22title%22

Image4

To overcome above errors in getting links, we should consider editing following :

1. Adding if statement that checks the presence of backslash before any bracket or parentheses. I just added for brackets in my Markdown Parse.java during Lab 7. Additionally it should be for parentheses also

Image5

2. Converting special characters to their ASCII code and consider # within link. For Lab 7, I tried converting backticks to their ASCII code and read them within link. Similarly, we should do for other characters. Image6

Thanks for supporting throughout the Quarter!