Markdown

Dok comes with two commonmark extensions pre-installed:

These are initiated inside of AppServiceProvider.php and their config is managed at config/statamic/markdown.php.

To use the Table of Contents extension, simply write [TOC] on the line you want it to be displayed at.