- Issue created by @penyaskito
We had a requirement where we wanted to exclude some headers (e.g. //article[class]//h2) while including the parent itself (//article[class]). The problem was that we have a wrapper container and we want the "Back to top" link above the container, not inside.
Excluding was easy, but Toc.php is quite tied to hN, so there is no easy way to do this, if any.
In our case was a visual issue mostly, so we moved the "back to top" to the parent element via js. But looks like a hack to me.
Would love if someone has better ideas to allow to expand the ToC contents to include other items aside of hN.
Might be a won't fix though.
Discuss.
TBD
TBD
TBD
Active
1.0
Code