Closed shogotsuneto closed 5 years ago
Hi @shogotsuneto, thanks so much for contributing this feature! I really like the idea and I'm happy to merge it. Seeing the example of how you're using this feature in your own code made it easy to understand the benefit.
Okay, I've published version 1.1.0 to NPM; it includes your PR. Thanks again for contributing! 🙂
Thanks! Now I can use NPM version, not my fork!
Adding depth prop to section (from child heading depth).
Motivation
There can be a section depth of 6, directly under depth 1 (like in test.js#80). Besides, I like to write selector more straightforwardly.
Here is my example in React app: component
CSS is like this.
I think accessing
children[0].depth
could spoil some flexibility. See caller of the above component.I hope you consider merging this pull request.