highlightDefault not working when there is content above the ToC
Hey, quick question about how to keep the first element of the ToC "unhighlighted" when I am scrolling through some sections that are placed above the ToC?
For example, here is my navigation sidebar:
- section 1
- section 2
- ToC
- H1
- H2
- H3
As far as I understand, when the ToC is init and with highlightDefault = true, H1 will be highlighted, even while user is viewing section 1 and section 2 in the main frame. However when I set highlightDefault = false, the subheaders disappear entirely. How do I make H1 remain "unhighlighted" until the user scrolls to that portion of the page?
Thanks!
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
这个插件的说明太少了,无法做到导航处的高亮,不知道如何只设定在页面中间,不要顶到最上。