# Document outline feature for CKEditor 5

This package implements two features:

* **Document outline**: It displays the **list of sections (headings) of the document next to the editor**. The outline updates automatically as the user works on the document. It offers quick navigation to a specific section upon clicking.
* **Table of contents (TOC)**: It inserts **a widget with a list of sections (headings) into the document**. The list stays up–to–date automatically as the user works on the document. It offers quick navigation to a specific section upon clicking.

<a id="demo">

## Demo

Check out the following demos:

* [Document outline feature demo](../features/document-outline.md#demo).
* [Table of contents feature demo](../features/table-of-contents.md#demo).

<a id="documentation">

## Documentation

* For the **Document outline** feature: see the [Document outline](../features/document-outline.md) feature guide as well as the [`DocumentOutline`](module_document-outline_documentoutline-DocumentOutline.md) plugin documentation.
* For the **Table of contents** feature: see the [table of contents](../features/table-of-contents.md) feature guide as well as the [`TableOfContents`](module_document-outline_tableofcontents-TableOfContents.md) plugin documentation.

<a id="installation">

## Installation

This package is part of our premium aggregate package.

```bash
npm install ckeditor5-premium-features
```

<a id="external-links">

## External links

* [`@ckeditor/ckeditor5-document-outline` on npm](https://www.npmjs.com/package/@ckeditor/ckeditor5-document-outline)
* [Issue tracker](https://github.com/ckeditor/ckeditor5/issues)

---

Full index of the CKEditor 5 API reference: [llms.txt](llms.txt)
