fix a typo introduced by a rebased PR

caused heading cells to appear in both rendered and unrendered state
Merge pull request #5281 from minrk/rebase-typo

fix a typo introduced by a rebased PR, that was causing heading cells to be displayed in both input and rendered forms.