YOUR NAME

Automatic TOC Demo

This post demonstrates the automatic Table of Contents feature. Just set toc: true in your front matter, and the TOC will be automatically generated from your H2 and H3 headings!

Getting Started

This is a section about getting started. The TOC is automatically generated from the headings in your post.

Installation

Here’s a subsection about installation.

Configuration

And another subsection about configuration.

Features

Let’s talk about the features available.

Automatic ID Generation

If your headings don’t have IDs, they will be automatically generated based on the heading text.

Scroll Spy

The TOC automatically highlights the current section as you scroll.

Usage Examples

Here are some usage examples.

Basic Usage

Start with the basics.

Advanced Usage

Then move to advanced topics.

Best Practices

Follow these best practices for optimal results.

Conclusion

That’s it! No need to manually define TOC items in the front matter anymore.