Skip to content

Context options #91

@jamesalmeida

Description

@jamesalmeida

All the examples seem to show the context option set to body but I need mine set to a div with a specific id. Is this possible? If so, whats the syntax for that? What are other options besides body? For some reason my ToC only shows the first h1 in the body and I need it to show the h2, h3, and h4's in a specific div with an id. I tried using the option to specify h2-h4 and ignore h1 but that didn't help. I tried setting the context option to context: "#article" and also tried context: "div#article" but that didn't work either.

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

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