hsMarkupToHTML - paragraph generation algorithm updated (process line-by-line instead of using regexp)