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

Configurable TOC anchor #4

Closed Progdrasil closed 3 years ago

Progdrasil commented 4 years ago

It would be really cool to be able to configure the toc anchor (<!-- toc -->) to something else in the book.toml file. For example I host an mdbook on gitlab and would like the markdown preview in gitlab to be the closest possible to the one in the book. However in gitlab the toc anchor is [[_TOC_]].

And I'm fairly certain other markdown flavors have their own way of specifying this.