# docs: Hide "on this page" element when there are no headings \(\#31635\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/0791596cdacfafc2541f94411c3aa2acf67e01a2)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 0791596cdacfafc2541f94411c3aa2acf67e01a2

Requested commit: 0791596cdacfafc2541f94411c3aa2acf67e01a2

Commit: 0791596cdacfafc2541f94411c3aa2acf67e01a2

Tree: 43079ff7eb3d409d025ce01a8acf311d11e857fe

Author: Danilo Leal

Committer: GitHub

## Message

```
docs: Hide "on this page" element when there are no headings (#31635)

We were still showing the "On this page" element even when the page
didn't contain any h2s or h3s.

Release Notes:

- N/A
```

## Parents

- [9cc1851be7aad564d5382ad6880c2679686e366b](https://git.cafe/gitcafe/zed/commit/9cc1851be7aad564d5382ad6880c2679686e366b?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/0791596cdacfafc2541f94411c3aa2acf67e01a2?format=markdown)
