bootstrap-toc
bootstrap-toc copied to clipboard
API: add depth option
Had to make the css recursive so that nested sub levels contrast with their parent consistently
@afeld , care to give this a quick look ? Been using that for some time with no problems
Hi @MathieuDuponchelle, thanks for your work, that looks great!
One question tho, do you think the check in getTopLevel()
for $headings.length > 1
is needed? In this case, where we want to display the full table of content, this does not display the H1 for example.
H1
- H2
- H2
- - H3
- - - H4
- H2
@sasanikolic90 , I suppose you could add an option for that, that's not really related to this PR is it? In my case I do want to ignore the top level when it only has a single item fwiw
ping @afeld btw
I created a new rebased MR here: https://github.com/afeld/bootstrap-toc/pull/52
@sasanikolic90 , would be nice if you could preserve authorship ;)
@MathieuDuponchelle yeah, sorry about that, but not sure how since these changes did not apply anymore.
git commit --amend --author=XXX
comes to mind :P