cope with combination punctuation/html tags
kind of solved the inline whitespace problem without infinite loops
added preliminary test suite