Fix/exclude headings from checks to get consistent errors.

I can add extra test cases if that's a concern.

EDIT: This is still a WIP and I'd love feedback.