Fixed typo.
Major refactoring to maintain source line numbers in target HTML. Removed brain-dead stack-based code from block elements parser in the process.