Fixed html escaping. Need tests for it. Also handled codeblock on last line.
Last line doesn't need \n
Now maintaining source line numbers in output to allow for easy side-by-side comparison.
Added some tests.
Fixed indentation.