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: Override TOC transform maxDepth parameter in single place #57

Open
Justinas-Seskevicius opened this issue Oct 25, 2021 · 1 comment

Comments

@Justinas-Seskevicius
Copy link

Justinas-Seskevicius commented Oct 25, 2021

In my use case I have multiple markdown files that use TOC transform, some of which have multiple nested headings requiring to specify the maxDepth parameter for those individual files.

It would be great if maxDepth could be provided for all files in a single place, e.g. in markdown.config.js file or via CLI params. This would reduce the need to specify it in every file with nested headings.

@TimPietrusky
Copy link

That would be super useful. Initially I thought that you can set the maxDepth (and every other parameter of every transformer) via a config-file, it's not clear at all that you have to provide the config as part of the inline-comment itself.

So please make all the things configurable in one file 🙏

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