Add cols validation, and colspec and colwidth generation #1694
Refactor table and fig title generation in HTML #1695