Add malformed markup check when editing ToC as well