# DiscoTOC - automatic table of contents

**URL:** https://meta.discourse.org/t/discotoc-automatic-table-of-contents/111143
**Category:** Theme component
**Tags:** official, disco-toc
**Created:** [3월 9, 2019, 5:36오전 UTC](https://meta.discourse.org/t/discotoc-automatic-table-of-contents/111143 "2019-03-09T05:36:22Z")
**Posts on this page:** 1
**Showing post:** 455

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [5월 6, 2025, 9:37오전 UTC](https://meta.discourse.org/t/discotoc-automatic-table-of-contents/111143/455 "2025-05-06T09:37:39Z")

</div>

이것이 충분히 기술적인 설명인지 모르겠지만, 컴포넌트가 적절한 목차(TOC)를 생성하려면 게시물 내에 `<div data-theme-toc="true"> </div>`와 함께 일부 제목이 모두 필요합니다.

`<div data-theme-toc="true"> </div>`를 삽입하지 않으면 게시물에는 단순히 제목만 있는 상태가 되며, 제목을 포함하지 않고 해당 태그만 추가하면 목차가 생성되지 않습니다(컴포넌트에는 기본값이 3인 `TOC min heading` 설정도 있습니다. 따라서 가시적인 목차를 생성하려면 게시물에 최소 3개의 헤더가 필요합니다).

‘목차 삽입’ 버튼은 게시물에 `<div data-theme-toc="true"> </div>`를 삽입하지만, 동일한 효과를 위해 이를 직접 복사하여 붙여넣거나 수동으로 입력할 수도 있습니다.

도움이 되기를 바랍니다. 🤞

* * *

**예상 시간:** `Auto TOC categories` 및 `Auto TOC tags` 컴포넌트 설정을 사용하는 경우, 해당 상황에서는 `<div data-theme-toc="true"> </div>`를 삽입할 필요가 없다는 점을 상기해 주셨습니다. 👍

---

_[View the full topic](https://meta.discourse.org/t/discotoc-automatic-table-of-contents/111143)._
