You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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 theh2
headers as well as theh3
headers in between and print them in there proper order, which is a little bit more complex, but definitely possible withnokogiri
.The text was updated successfully, but these errors were encountered: