# Sections wrapped in a shortcode do not appear in the TOC

**URL:** <https://discourse.gohugo.io/t/sections-wrapped-in-a-shortcode-do-not-appear-in-the-toc/21304>\
**Category:** support\
**Created:** [October 17, 2019, 12:07pm UTC](https://discourse.gohugo.io/t/sections-wrapped-in-a-shortcode-do-not-appear-in-the-toc/21304 "2019-10-17T12:07:56Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![sharonl](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/sharonl/32/3236_2.png) [@sharonl](https://discourse.gohugo.io/u/sharonl)\
**Post date:** [October 17, 2019, 12:31pm UTC](https://discourse.gohugo.io/t/sections-wrapped-in-a-shortcode-do-not-appear-in-the-toc/21304/2 "2019-10-17T12:31:44Z")

</div>

We created our own custom page-TOC (“mini TOC”) implementation to support headings created with shortcodes (and other features). See [Create a custom page TOC ("mini TOC") with Javascript](https://discourse.gohugo.io/t/create-a-custom-page-toc-mini-toc-with-javascript/16665).

---

_[View the full topic](https://discourse.gohugo.io/t/sections-wrapped-in-a-shortcode-do-not-appear-in-the-toc/21304)._
