Changed regexp in toHTML to match \r\n line endings
add some to-html tests
Merge pull request #164 from jackjennings/line-endings

Changed regexp in toHTML to also match \r\n line endings