New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can I nest h3 below h2 lists? #5
Comments
I'm not quite following - can you give a short example? The tool doesn't output h2 or h3 tags so I'm not sure what you mean... are you wanting the output to be nested differently? Or is it having trouble picking up one of your headings? |
Sorry bout that: allow me to demonstrate: # |
Can you send the javascript code you're using too? When I run the test scenarios I have, the toc matches what you are requesting: See example at: https://github.com/psalmody/html-contents/blob/master/test/index.html Initializing with: document.addEventListener("DOMContentLoaded", function(event) {
htmlContents('#toc', {
bottom: 5,
listType: 'o',
filter: function(arr) {
return !arr.matches('.noOutline')
}
})
}) |
This is the current code being output
ul>h2,h2,h3
How would we go about?
ul>h2,h2>ul,h3
This enables us to use the active class in order to hide a submenu when the parent is not active.
The text was updated successfully, but these errors were encountered: