I have tried to introduce the `--toc-depth` switch previously but pandoc is too old on the bots to actually support it.
We will have to stick with CSS until it gets updated.