Skip to content

Outline div incorrect when heading levels are out-of-order #31

Description

@maxg

When the first h3 appears before the first h2 (or, in theory, if the first h2 appeared before the first h1, which does not happen because the title is injected as a h1), its data-outline <div> encloses the rest of the handout.

Need to consume siblings only up to a heading that is the same or higher.

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