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
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 -->
The text was updated successfully, but these errors were encountered:
haysclark
changed the title
Feature request: add flag to look for TOC content before <!-- START -->
Feature request: add ability to include headings before the TOC's <!-- START --> flag
Sep 13, 2021
None of the above two is possible ATM, but I'm open to a PR that makes that configurable. TOC-IGNORE-START is a bit too specific, but something along the lines of DOCTOC_INCLUDE_START and DOCTOC_INCLUDE_END and DOCTOC_SKIP_START/END comments could work.
Best to discuss details here with some more detailed examples before jumping into the implementation.
Agreed. It seems like the --include-all would be easier to pull off than the one about skippable headers. Probably want to treat them as a separate features. :)
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 -->
The text was updated successfully, but these errors were encountered: