Skip to content

Table of contents only shows level 3 headers #2

@jdlich

Description

@jdlich

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions