add preserveBlankLines option

added some more tests from issues that arose when testing preserveBlankLines in live-editor + fixes

a couple minor issues fixed + tests for preserveBlankLines option

renamed test cases to be more descriptive

lint