Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: make start index configurable #74

Closed
adamsoffer opened this issue Aug 21, 2020 · 2 comments
Closed

Feature request: make start index configurable #74

adamsoffer opened this issue Aug 21, 2020 · 2 comments

Comments

@adamsoffer
Copy link

I noticed the index of anchors ids starts at index 2. It would be great if this start index could be configurable. My use case is that I'm usingmarkdown-toc which uses the same naming conventions for anchors but starts at 1.

@valeriangalliat
Copy link
Owner

valeriangalliat commented Sep 29, 2020

Hey! That a good use case, I just released 6.0.0 with a uniqueSlugStartIndex option to configure that.

I also made the default 1 (which is why I bumped a major) because since it seems to be the default in most other packages (and on GitHub itself) I think it's probably a more sensible default than 2.

Cheers!

@adamsoffer
Copy link
Author

Nice! Thanks @valeriangalliat

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants