Make sure lexed node includes HTML all the way to matching closing tag

The lexer assumes an html block finishes at the next matching close tag, which is often not the case. Instead,  the corresponding close tag should be found.