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

Skip first H1 headline is broken #42

Open
ghost opened this issue Dec 27, 2015 · 4 comments
Open

Skip first H1 headline is broken #42

ghost opened this issue Dec 27, 2015 · 4 comments
Labels

Comments

@ghost
Copy link

ghost commented Dec 27, 2015

Generate TOC with the option firsth1:false outputs undefined. Btw, I would also suggest to use a more meaningful name like skipFirstHeadline

@jonschlinkert
Copy link
Owner

Can you show me where that is documented? The option is firsth1 I believe. documented here

@jonschlinkert
Copy link
Owner

You can also use options.filter to exclude headings.

@ghost
Copy link
Author

ghost commented Dec 28, 2015

Yes. I did use firsth1 exactly as documented. The first Headline isn't displayed but undefined. From a quick look at the source it seems this option wasn't updated with code changes.

@jonschlinkert
Copy link
Owner

ah, ok thanks so much for double-checking. looks like a bug

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

No branches or pull requests

1 participant