Adjust order of closing tags

Tables should be closed first, because otherwise users can escape
certain formatting off into the wild blue yonder. This is sub-optimal
for a viewing experience for everybody else.