bookdown / Bookdown.Bookdown

Core libraries for Bookdown generation.
http://bookdown.io
MIT License
81 stars 11 forks source link

TocDepth not working properly? #35

Closed pmjones closed 8 years ago

pmjones commented 8 years ago

@sandrokeil When I set "tocDepth": 1, at the root level, then I correctly see only one level of TOC depth at the root.

However, when I set it to 2 at the root level, I see all levels of TOC depth at the root.

This is in the bookdown.github.io develop branch.

I looked for, but did not see, a test for the tocDepth stuff, so that may be needed.

Thoughts?

sandrokeil commented 8 years ago

@pmjones Oh no, you're right. Something goes wrong. I will ckeck this and add a test for this issue. Sorry.

pmjones commented 8 years ago

Fixed by #36.