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

0.9.0: passing options to toc (for example opts.filter), and expose TOC helper to template #95

Closed
tunnckoCore opened this issue Mar 26, 2016 · 3 comments · May be fixed by GerHobbelt/verb#18

Comments

@tunnckoCore
Copy link

Because currently it is not exposed for use with {%= toc() %}, you can do only using html comment.
Also passing custom options to toc isn't possible, overwriting also is not possible, even through verb config - for example verb.toc.footer does not overwrite the default footer of toc.

<!-- toc('*.md', {filter: fn}) -->
@jonschlinkert
Copy link
Member

closing since there is no toc logic verb. If necessary, create this issue on verb-readme-generator, wich uses verb-toc middleware. Options are already passed to the middleware, but it doesn't do the things you probably want. You might better off creating a custom toc middleware or helper that does what you want.

@tunnckoCore
Copy link
Author

Options are already passed to

And how to pass filter option? And what options "works"?

@jonschlinkert
Copy link
Member

And how to pass filter option? And what options "works"?

I can make sure options are passed to markdown-toc if that's what you mean. but that would be an issue for verb-toc

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

Successfully merging a pull request may close this issue.

2 participants