Skip to content
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

Table of contents only shows level 3 headers #2

Open
jdlich opened this issue Oct 24, 2011 · 0 comments
Open

Table of contents only shows level 3 headers #2

jdlich opened this issue Oct 24, 2011 · 0 comments

Comments

@jdlich
Copy link
Owner

jdlich commented Oct 24, 2011

Currently, the TOC consists of the chapter title and all of the h3 headers in the document. What we need to do is loop through the document, fetch all of the h2 headers as well as the h3 headers in between and print them in there proper order, which is a little bit more complex, but definitely possible with nokogiri.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant