Greetings. I've been using knitr and pandoc separately to produce HTML (sometimes PDF) documents with a numbered table of contents, something like:
pandoc -s -S --mathjax --toc --number-sections foo.md -o foo.html
I decided to try the rmarkdown::render approach, and I have to say I think it's a very nice idea. I can easily get a table of contents via the meta data:
output:
html_document:
theme: cosmo
toc: yes
But I don't see how to get a *numbered* TOC. Can somebody enlighten me? Thanks.
-- Mike