Table of Contents – Test Page

This simple test creates a table of contents. It's kinda lacking, but you get the gist. See more examples for customization.

A nice demo article

Usually, there is a small intro. The table of contents comes next.

How was this created?

This way: <table-of-contents></table-of-contents>

As you can see, the default works, but might be not what you want for more complex pages

This h4 is an important announcement

We want this headline in the TOC for testing purposes to see that headlines do not need to be ordered from h1-h4, but can come in unexpected ways.

Sub1

Subsub1-1

Subsub1-2

Sub2

Subsub2-1

Subsub2-2

Sub3