I changed this so that it covers all headings, but is that really the behavior you want for this? If the highest allowable heading level is specified as `h2`, I would think you wouldn't want to allow the user to insert `h1` headings into the document anymore, even if the preceding heading to an inserted heading is an `h1`.