Skip to content

Feature request: add ability to include headings before the TOC's <!-- START --> flag #213

@haysclark

Description

@haysclark

I've been converting some docs to MD that have TOC content before the TOC itself. e.g. ## Preface. Currently, only generates TOC content for elements found after the <!-- START -->. It would be nice if the was a doctoc flag would override this behavior and parse the entire document.

Naturally, this might require adding additional features to exclude referencing the TOC itself, like IGNORE flags.:

<!-- TOC-IGNORE-START -->
<!-- TOC-IGNORE-END -->

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