bug 1131: Fix tables and wrap them in HTML5 figure elements