making a number of changes to handle inline HTML more carefully (especially with consideration to code blocks). also had to make some changes to the entity block parsing so that self-closing tags (ie <img />) are looked for and treated accordingly. i could just do <img ...></img> but thats no fun...