Heading 2 is hidden, yet appears in the TOC.

Heading 1

edit

Section 1.

Heading 2

edit

Section 2. (The second heading is hidden.)

edit

Edit Heading 1

Edit Heading 2