Smarter tag parsing. Support for table headers and more.