badboy / mdbook-toc

A preprocessor for mdbook to add inline Table of Contents support.
Mozilla Public License 2.0
163 stars 20 forks source link

Add title for the TOC #17

Closed Huy-Ngo closed 3 years ago

Huy-Ngo commented 3 years ago

It would be clearer to have some title for the table of contents, like "Contents" or "Table of contents". I think this should be added as an option in the config.

badboy commented 3 years ago

You can simply add your own header before your table of contents like this:

## Table of Contents

<!-- toc -->